### Question:
PolicyContextPreserver { public Runnable wrap(final Runnable runnable) { return new Runnable() { @Override public void run() { IdentityHashMap<CurrentContextAccessor, Object> threadContext = preserve(); try { restore(preservedContext); runnable.run(); } finally { restore(threadContext); } } }; } PolicyContextPreserver(); static void registerAccessor(CurrentContextAccessor accessor); Runnable wrap(final Runnable runnable); WrappedCallable<T> wrap(Callable<T> callable);  }### Answer:
@Test public void testNoSecurityManager() throws Exception { PolicyContextPreserver preserver = new PolicyContextPreserver(); AtomicInteger count = new AtomicInteger(); preserver.wrap(() -> count.set(1)).run(); assertEquals(1, count.get()); }