testAccessBean("private");
testAccessBean("protected");
testAccessBean("public");
// this should fail or something :-) on proxy
AccessBean pb = getBean("public", AccessBean.class);
assertEquals("foobar", pb.pubString);
AbstractTypeTestDelegate.Type type = getType("public");
assertTrue(pb.getPubString() == null || type != AbstractTypeTestDelegate.Type.PROXY);
}
finally
{
resumeSecurity(sm);
}