@Test
public void _00_addNodeToCoreGraph() {

    try {
        CountDownLatch latch = new CountDownLatch(1);
        long ts0 = System.currentTimeMillis();
        Task createNode = Tasks.newTask()
                .declareIndex("nodes", "name")
                .createNode()
                .setAttribute("name", Type.STRING, "Node 0")
                .updateIndex("nodes");
        localWorker.submitTask(createNode, creationResult -> {
            if (creationResult.exception() != null) {
                creationResult.exception().printStackTrace();
            }
            long ts1 = System.currentTimeMillis();
            assertEquals(1, creationResult.size());
            assertTrue(creationResult.get(0) instanceof Node);
            assertEquals("Node 0", ((Node) creationResult.get(0)).get("name"));
            assertNull(creationResult.exception());
            assertNull(creationResult.output());
            //System.out.println("Duration: " + (ts1 - ts0) + "ms");
            latch.countDown();
        }, GraphWorkerPool.getInstance().getRootWorkerMailboxId());
        latch.await();
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
}