@Test
public void testOutputDirectory() throws Exception {

   ScriptEngineManager mgr = new ScriptEngineManager();
   ScriptEngine engine = mgr.getEngineByExtension("java");
   engine.put(JavaFragmentEngine.OUTPUT_DIRECTORY, "target/out");
   Invocable inv = (Invocable) engine.eval("public class HelloWorld {public String hello() {return \"Hello, world!\";}}");
   Assert.assertEquals("Hello, world!", inv.invokeFunction("hello"));
   Assert.assertTrue("Output directory does not work!", new File("target/out/HelloWorld.class").exists());
}