44454647484950
public class ReflectionTest { @Test public void testGetField() throws PrivilegedActionException { Assert.assertNotNull(AccessController.doPrivileged(new GetFieldAction(TestObject.class, "publicField"))); }
50515253545556575859
} @Test(expected = NoSuchFieldException.class) public void testGetFieldNotFound() throws Throwable { try { AccessController.doPrivileged(new GetFieldAction(TestObject.class, "eioota")); } catch (PrivilegedActionException e) { throw e.getCause(); } }