DefaultService implements Service<ENTITY, ENTITYLIST, KEY> { @Override public void removeEntity(final ENTITY entity) { dao.delete(entity); }  @Override void createEntity(final ENTITY entity); @Override ENTITY getEntity(final KEY id); @Override void updateEntity(final ENTITY entity); @Override void removeEntity(final ENTITY entity); @Override PagedResult<ENTITY> getEntities(final MultiplePagedSearch<ENTITYLIST> search); void setDao(final DAO defaultDao); void setParametersExtractor(final ParametersExtractor<ENTITYLIST> parametersExtractor); DAO getDao(); ParametersExtractor<ENTITYLIST> getParametersExtractor();  }
@Test public void testRemoveEntity() throws Exception { String abbrName = "abbr name"; String name = "name"; Department entity = new Department(); entity.setAbbrName(abbrName); entity.setName(name); unit.removeEntity(entity); verify(defaultDao).delete(entity); }