### Question:
DoctorDaoImpl implements DoctorDao { public DoctorDaoResult add(final Doctor doctor) { final DoctorDaoResult result = new DoctorDaoResult(); em.persist(doctor); for (final DoctorNotificationSetting setting : doctor.getSettings()) { em.merge(setting); } result.setSuccess(true); return result; }  DoctorDaoResult add(final Doctor doctor); DoctorDaoResult delete(final Doctor doctor); List<Doctor> find(final DoctorBrowseFilter filter); DoctorDaoResult getById(final Long id); DoctorDaoResult getByTckn(final Long tckn); @PersistenceContext void setEntityManager(final EntityManager em); DoctorDaoResult update(final Doctor doctor); DoctorDaoResult getByApi(final String apiKey);  }### Answer:
@Test public void addDoctorSuccessfully() throws Exception { final DoctorDaoResult result = doctorDao.add(doctor); assertTrue(result.isSuccess()); verifyPersist(); }