### Question:
RelationshipUtils { public static boolean relationshipNotExists(Node node1, Node node2, RelationshipType type, Direction direction) { return !relationshipExists(node1, node2, type, direction); } private  RelationshipUtils(); static Relationship getSingleRelationship(Node node1, Node node2, RelationshipType type, Direction direction); static Relationship getSingleRelationshipOrNull(Node node1, Node node2, RelationshipType type, Direction direction); static boolean relationshipNotExists(Node node1, Node node2, RelationshipType type, Direction direction); static boolean relationshipExists(Node node1, Node node2, RelationshipType type, Direction direction); static void deleteRelationshipIfExists(Node node1, Node node2, RelationshipType type, Direction direction); static Relationship createRelationshipIfNotExists(Node node1, Node node2, RelationshipType type, Direction direction);  }### Answer:
@Test public void nonExistingRelationshipShouldBeCorrectlyIdentified() { try (Transaction tx = database.beginTx()) { Node node1 = database.getNodeById(0); Node node2 = database.getNodeById(1); assertTrue(relationshipNotExists(node2, node1, withName("TEST"), OUTGOING)); assertTrue(relationshipNotExists(node2, node1, withName("IDONTEXIST"), INCOMING)); assertFalse(relationshipNotExists(node2, node1, withName("TEST"), INCOMING)); assertFalse(relationshipNotExists(node2, node1, withName("TEST"), BOTH)); tx.success(); } }