Employee { public boolean isMale() { return gender.isMale(); } Employee(String name, IDCard idCard, Phone mobile);  Employee(String name, IDCard idCard, Phone mobile, LocalDateTime onBoardingDate);  Employee(EmployeeId id, String name, IDCard idCard, Phone mobile, LocalDateTime onBoardingDate); EmployeeId id(); boolean isMale(); boolean isFemale(); LocalDateTime onBoardingDate(); synchronized void assignIdFrom(String sequenceCode);  }
@Test public void should_set_correct_male_gender_given_correct_id_card() { Employee employee = new Employee(validName, validIdCard, validPhone); assertThat(employee.isMale()).isTrue(); }