ComponentPropertyProxyWorker worker = new ComponentPropertyProxyWorker();
List<String> exclude = new ArrayList<String>();
exclude.add("Entity");
worker.setExcludedPackages(exclude);
IPropertySpecification prop = new PropertySpecification();
prop.setName("value");
prop.setPersistence("session");
assertEquals(worker.extractPropertyType(AnnotatedGenericPersistentPage.class, "value", prop), Persistent.class);
prop.setGeneric(false);
prop.setType(null);
prop.setName("secondValue");
Class type = worker.extractPropertyType(AnnotatedGenericPersistentPage.class, "secondValue", prop);
assert type != null;
assert prop.isGeneric();
assertEquals(type, Persistent.class);
}