DAOBasedPropertyService extends AbstractShortnameResolver implements PropertyService { @Override public Collection<Property> getProperties() { return getPropertyDAO().read(); }  AnnotationService getAnnotationService(); void setAnnotationService(AnnotationService annotationService); PropertyDAO getPropertyDAO(); void setPropertyDAO(PropertyDAO propertyDAO); AnnotationDAO getAnnotationDAO(); void setAnnotationDAO(AnnotationDAO annotationDAO); @Override Collection<Property> getProperties(); @Override Collection<Property> getProperties(int limit, int start); @Override Property getProperty(String shortname); @Override Property getProperty(URI uri); @Override Collection<Property> getMatchedTypedProperty(String type, String value); @Override Property getMatchedUntypedProperty(String value); @Override Collection<Property> getMatchedTypedProperties(String type); @Override Property saveProperty(Property property);  }
@Test public void testGetPropertiesLimited() { int limit = 20; int start = 10; service.getProperties(limit, start); verify(dao).read(limit, start); }
@Test public void testGetProperties() { service.getProperties(); verify(dao).read(); }