How do you write test class if the exception has been thrown
public class UserService{
public class UserServiceException extends Exception{}
public static Contact createUser(Contact applicant, Id accountid){
if(String.isBlank(applicant.firstName){
throw new UserServiceException('Contact firstName is null');
}
return applicant;
}