@Test
    @LoadGraphWith(LoadGraphWith.GraphData.MODERN)
    public void shouldAttachToGraph() {
        final Edge toReference = g.E(convertToEdgeId("josh", "created", "lop")).next();
        final ReferenceEdge referenceEdge = ReferenceFactory.detach(toReference);
        final Edge referenced = referenceEdge.attach(Attachable.Method.get(graph));

        assertEquals(toReference, referenced);
        assertFalse(referenced instanceof ReferenceEdge);
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/util/reference/ReferenceEdgeTest.java