@Test public void testMapping() throws Exception { assertNumberOfNodes(2); assertRelationships(1); String wifeNode = "(w:Wife:ENTITY { id: {w}.id, name: {w}.name })"; String husbandNode = "(h:Husband:ENTITY {id: {h}.id, name: {h}.name})"; Map<String, Object> wifeProperties = new HashMap<String, Object>(); wifeProperties.put("id", wife.getId()); wifeProperties.put("name", wife.getName()); Map<String, Object> husbandProperties = new HashMap<String, Object>(); husbandProperties.put("id", husband.getId()); husbandProperties.put("name", husband.getName()); Map<String, Object> params = new HashMap<String, Object>(); params.put("w", wifeProperties); params.put("h", husbandProperties); assertExpectedMapping("w", wifeNode, params); assertExpectedMapping("h", husbandNode, params); assertExpectedMapping("r", wifeNode + " - [r:wife] - " + husbandNode, params); }