assertEquals(StreamFactory.class.getName(), engine.eval("StreamFactory.class.getName()"));
}
@Test
public void shouldLoadImportsViaDependencyManagerFromDependencyGatheredByUse() throws Exception {
final GremlinGroovyScriptEngine engine = new GremlinGroovyScriptEngine(new NoImportCustomizerProvider());
try {
engine.eval("org.apache.commons.math3.util.FastMath.abs(-1235)");
fail("Should have thrown an exception because no imports were supplied");
} catch (Exception se) {
assertTrue(se instanceof ScriptException);