@Test public void test_should_make_personal_details(){ Requester requester = Requester.builder() .address("address") .email("test@abc.com") .firstName("test") .mobile("000000000") .userId("1") .build(); requester.maskMobileAndEmailDetails(); assertNull(requester.getEmail()); assertNull(requester.getMobile()); }
public void maskMobileAndEmailDetails() { this.mobile = null; this.email = null; }
Requester { public void maskMobileAndEmailDetails() { this.mobile = null; this.email = null; } }
Requester { public void maskMobileAndEmailDetails() { this.mobile = null; this.email = null; }  }
Requester { public void maskMobileAndEmailDetails() { this.mobile = null; this.email = null; }  boolean isAbsent(); boolean isMobileAbsent(); boolean isFirstNameAbsent(); boolean isValidEmailAddress(); boolean isMobileNumberValid(); void maskMobileAndEmailDetails(); }
Requester { public void maskMobileAndEmailDetails() { this.mobile = null; this.email = null; }  boolean isAbsent(); boolean isMobileAbsent(); boolean isFirstNameAbsent(); boolean isValidEmailAddress(); boolean isMobileNumberValid(); void maskMobileAndEmailDetails();  }