@Test public void testDeleteByIdWithApplicantRepositoryShouldNotFindApplicantThatDelete() throws Exception { Applicant delete = applicantRepository.find(applicant.getId()); applicantRepository.deleteById(delete.getId()); Applicant result = applicantRepository.find(delete.getId()); assertNull(result); }