private RequestMessage buildRequestMessage(final String traversalSource) {
        final String script = String.format("1+1; %s.V().map{it.get()}", traversalSource);
        return RequestMessage.build(script).create();
    }
@author Marc de Lignie

Run with:
mvn test --projects gremlin-server -Dtest=AuthorizerTest
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/authz/AuthorizerTest.java