@Test public void testFindByJobLevelWithApplicantRepositoryShouldReturnListOfApplicantThatHaveSetupJobLevel() throws Exception { List<ApplicantDto> result = applicantRepository.findByJoblevel(applicant.getJobLevel().getName()); assertNotNull(result); assertThat(result.get(0).getJoblevelStr(), is("Consultant")); }