@Test
public void testAddVertexWithCustomizeStringIdStrategy() {
HugeGraph graph = graph();
SchemaManager schema = graph.schema();
schema.vertexLabel("programmer")
.useCustomizeStringId()
.properties("name", "age", "city")
.create();
graph.addVertex(T.label, "programmer", T.id, "123456", "name", "marko",
"age", 18, "city", "Beijing");
graph.tx().commit();
List<Vertex> vertices = graph.traversal().V("123456").toList();
Assert.assertEquals(1, vertices.size());
Object id = vertices.get(0).id();
Assert.assertEquals(IdGenerator.StringId.class, id.getClass());
Assert.assertEquals("123456", ((IdGenerator.StringId) id).asString());
assertContains(vertices,
T.label, "programmer", "name", "marko",
"age", 18, "city", "Beijing");
}