@Test
    @FeatureRequirementSet(FeatureRequirementSet.Package.SIMPLE)
    public void shouldAppendPartitionToEdge() {
        final PartitionStrategy partitionStrategy = PartitionStrategy.build()
                .partitionKey(partition).writePartition("A").readPartitions("A").create();
        final GraphTraversalSource source = g.withStrategies(partitionStrategy);
        final Vertex v1 = source.addV().property("any", "thing").next();
        final Vertex v2 = source.addV().property("some", "thing").next();
        final Edge e1 = source.V(v1).addE("connectsTo").from(v2).property("every", "thing").next();
        final Edge e2 = source.addE("relatesTo").from(v2).to(v1).property("every", "thing").next();

        assertNotNull(v1);
        assertEquals("thing", g.V(v1).values("any").next());
        assertEquals("A", g.V(v2).values(partition).next());

        assertNotNull(v2);
        assertEquals("thing", g.V(v2).values("some").next());
        assertEquals("A", g.V(v2).values(partition).next());

        assertNotNull(e1);
        assertEquals("thing", g.E(e1).values("every").next());
        assertEquals("connectsTo", e1.label());
        assertEquals("A", g.E(e1).values(partition).next());

        assertNotNull(e2);
        assertEquals("thing", g.E(e2).values("every").next());
        assertEquals("relatesTo", e2.label());
        assertEquals("A", g.E(e2).values(partition).next());
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/PartitionStrategyProcessTest.java