### Question:
PropertyScanner { List<Property> getProperties(TypeManager typeManager) { Scanner scanner = new Scanner(typeManager); if(!scanner.isValid()) { throw new InvalidDefinitionException(scanner.getReport()); } return scanner.getDefinitions(); } PropertyScanner(Class<?> clazz, String defaultNamespace);   }### Answer:
@Test public void scanFields() throws Exception { PropertyScanner propertyScanner = new PropertyScanner(AnnotatedClass.class,"http: try { propertyScanner.getProperties(manager); } catch (Exception e) { e.printStackTrace(); } }
@Test public void scanProperties() throws Exception { PropertyScanner propertyScanner = new PropertyScanner(Transaction.class,"http: propertyScanner.getProperties(manager); }