@Test
    public void shouldCreateUser() {
        final Graph graph = TinkerGraph.open();
        final CredentialTraversalSource g = graph.traversal(CredentialTraversalSource.class);
        final Vertex v = g.user("stephen", "secret").next();
        assertEquals("stephen", v.value("username"));
        assertEquals("user", v.label());
        assertNotEquals("secret", v.value("password"));  // hashed to something
        assertThat(v.value("password").toString().length(), greaterThan(0));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/jsr223/dsl/credential/CredentialTraversalDslTest.java