@Test
    public void testBugs() throws Exception {
        final GraphTraversalSource g = TinkerFactory.createModern().traversal();
        final GremlinLangScriptEngine se = new GremlinLangScriptEngine(
                new VariableResolverCustomizer(VariableResolver.DefaultVariableResolver::new));

        final Bindings b = se.createBindings();
        b.put("g", g);
        System.out.println(((GraphTraversal) se.eval("g.V().coin(0.5).count()", b)).toList());

        b.clear();
        b.put("g", g);
        b.put("x", 0.5d);
        System.out.println(((GraphTraversal) se.eval("g.V().coin(x).count()", b)).toList());

        b.clear();
        b.put("g", g);
        b.put("x", "josh");
        b.put("y", 32);
        System.out.println(((GraphTraversal) se.eval("g.V().has('name', x).has('age', y).count()", b)).toList());
    }
@author Stephen Mallette (http://stephen.genoprime.com)
tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphPlayTest.java