NullQueryProcessor extends SortableQueryProcessor { @Override public <T> List<Property<T>> processInternal(Query query, T instance, Class<T> instanceClazz) { List<Property<T>> properties = new ArrayList<Property<T>>(); for (PropertyDescriptor descriptor : ClassUtil.getReadableProperties(instanceClazz)) { if (!ignoreProperty(descriptor)) { properties.add(new CatnapProperty<T>(instance, descriptor)); } } return properties; }  @Override boolean supports(Class<? extends Query<?>> query); @Override List<Property<T>> processInternal(Query query, T instance, Class<T> instanceClazz);  }
@Test public void processInternalReturnsAllFields() { NullQueryProcessor processor = new NullQueryProcessor(); List<Property<MockModel>> properties = processor.processInternal(null, new MockModel(), MockModel.class); assertEquals(2, properties.size()); }