### Question:
DoctorManagerImpl implements DoctorManager { @Transactional public DoctorManagerResult getByTckn(final Long tckn) { final DoctorDaoResult daoResult = doctorDao.getByTckn(tckn); final DoctorManagerResult result = new DoctorManagerResult(); result.addDoctor(daoResult.getDoctor()); result.setSuccess(daoResult.isSuccess()); result.addError(daoResult.getError()); return result; }  @Transactional @RolesAllowed(Role.ROLE_ADMIN) DoctorManagerResult add(final Doctor doctor); void setDoctorDao(final DoctorDao doctorDao); @Transactional DoctorManagerResult getByTckn(final Long tckn); @Transactional @RolesAllowed(Role.ROLE_ADMIN) DoctorManagerResult search(final DoctorBrowseModel model); @Transactional DoctorManagerResult getById(final Long id); @Transactional @RolesAllowed({ Role.ROLE_ADMIN, Role.ROLE_DOCTOR }) DoctorManagerResult update(final Doctor doctor); @Transactional @RolesAllowed(Role.ROLE_ADMIN) DoctorManagerResult delete(final Doctor doctor); @Transactional DoctorManagerResult getByApi(final String apiKey);  }### Answer:
@Test public void getDoctor() throws Exception { final DoctorDaoResult daoResult = createDaoResult(true, null); daoResult.setDoctor(doctor); setDaoReturnForGet(daoResult); final DoctorManagerResult result = manager.getByTckn(doctor.getTckn()); assertTrue(result.isSuccess()); assertEquals(doctor, result.getDoctor()); Mockito.verify(dao).getByTckn(doctor.getTckn()); }