expect(op.getBaseClass()).andReturn(AnnotatedGenericPersistentPage.class).anyTimes();
ComponentPropertyProxyWorker worker = new ComponentPropertyProxyWorker();
IPropertySpecification p = addProperty(op, spec, l, "secondValue");
List<String> exclude = new ArrayList<String>();
exclude.add("Entity");
worker.setExcludedPackages(exclude);
replay();
worker.performEnhancement(op, spec);
verify();
IPropertySpecification prop = spec.getPropertySpecification("secondValue");
assert prop != null;
assert prop.isPersistent();
assert prop.isProxyChecked();
assert !prop.canProxy();
assertEquals(p.getType(), Persistent.class.getName());
}