Map<String, String> config = new HashMap<String, String>(TimelineNodeIndex.CONFIG);
final Node startNode = ReferenceNodes.getReferenceNode(db);
config.put(TimelineNodeIndex.START_NODE_ID, String.valueOf(startNode.getId()));
IndexManager indexMan = db.index();
Index<Node> index = indexMan.forNodes("timeline1", config);
final Timeline timeline = ((TimelineNodeIndex) index).getTimeline();
assertEquals(startNode, timeline.getUnderlyingNode());
assertNotNull(index);
}