@Test
 public void testScriptModuleValue() throws Exception {
   final Context context = new Context(ScriptService.class);
   final ScriptService scriptService = context.getService(ScriptService.class);
   final ScriptModule module =
       scriptService
           .run("test.rot13", ScriptModule.class.getName(), false, (Map<String, Object>) null)
           .get();
   final ScriptModule scriptModule = Rot13Engine.latestModule;
   assertEquals(module, scriptModule);
   assertNotNull(scriptModule);
   final ScriptInfo info = scriptModule.getInfo();
   assertEquals(context, info.context());
 }
 public void onModule(ScriptModule scriptModule) {
   scriptModule.registerScript("int", IntArrayScriptFactory.class);
   scriptModule.registerScript("long", LongArrayScriptFactory.class);
   scriptModule.registerScript("float", FloatArrayScriptFactory.class);
   scriptModule.registerScript("double", DoubleArrayScriptFactory.class);
 }