@Test
    public void shouldGetDirectionFromName() {
        assertEquals(Direction.IN, Direction.directionValueOf("IN"));
        assertEquals(Direction.OUT, Direction.directionValueOf("OUT"));
        assertEquals(Direction.IN, Direction.directionValueOf("to"));
        assertEquals(Direction.OUT, Direction.directionValueOf("from"));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/DirectionTest.java