scriptEngine.eval("g = new java.awt.Color(255, 255, 255)");
fail("Should have failed security");
} catch (ScriptException se) {
assertEquals(SecurityException.class, se.getCause().getCause().getClass());
} finally {
provider.unregisterInterceptors();
}
}
@Test
public void shouldSecureSome() throws Exception {