DAOBasedPropertyTypeService extends AbstractShortnameResolver implements PropertyTypeService { @Override public Collection<String> getPropertyTypes() { return getPropertyDAO().readTypes(); }  PropertyDAO getPropertyDAO(); void setPropertyDAO(PropertyDAO propertyDAO); @Override Collection<String> getPropertyTypes(); @Override Collection<String> getPropertyTypes(int limit, int start);  }
@Test public void testGetPropertyTypes() { service.getPropertyTypes(); verify(dao).readTypes(); }
@Test public void testGetPropertyTypesLimited() { int limit = 20; int start = 10; service.getPropertyTypes(limit, start); verify(dao).readTypes(limit, start); }