@Test public void testRot13() throws Exception { final Context context = new Context(ScriptService.class); final ScriptService scriptService = context.getService(ScriptService.class); final ScriptLanguage hello = scriptService.getLanguageByName("Hello"); assertNotNull(hello); final ScriptLanguage rot13 = scriptService.getLanguageByName("Rot13"); assertEquals(hello, rot13); assertEquals("Svool", rot13.getScriptEngine().eval("Hello")); }