@Test
    public void shouldGetEngineFromCache() {
        String javaVersion = System.getProperty("java.version");
        int majorVersion = Integer.parseInt(javaVersion.substring(0, javaVersion.indexOf('.')));
        assumeThat("Requires lower than JDK 14.", majorVersion < 14, is(true));
        assertSame(ScriptEngineCache.get("nashorn"), ScriptEngineCache.get("nashorn"));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/jsr223/ScriptEngineCacheTest.java