### Question:
SetAccessibleAction implements PrivilegedAction<T> { public T run() { accessibleObject.setAccessible(true); return accessibleObject; } SetAccessibleAction(T accessibleObject); T run();  }### Answer:
@Test public void testAccessAction() throws Exception { AccessibleObjectSpy accessibleObjectSpy = new AccessibleObjectSpy(Foo.class.getDeclaredField(BAR)); assertThat(new SetAccessibleAction<AccessibleObjectSpy>(accessibleObjectSpy).run(), is(accessibleObjectSpy)); assertThat(accessibleObjectSpy.accessible, is(true)); }