diff --git a/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java b/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java index 7039882ae..9deab3b0d 100644 --- a/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java +++ b/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java @@ -8,6 +8,7 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.neo4j.graphdb.Node; +import org.neo4j.graphdb.Relationship; import java.net.URISyntaxException; import java.util.Collection; @@ -38,7 +39,7 @@ public void query() { CompositeObject x = compositeRowObject.get("x", CompositeObject.class); assertThat(x.getDelegate(), instanceOf(Node.class)); CompositeObject y = compositeRowObject.get("y", CompositeObject.class); - assertThat(y.getDelegate(), instanceOf(Node.class)); + assertThat(y.getDelegate(), instanceOf(Relationship.class)); CompositeObject z = compositeRowObject.get("z", CompositeObject.class); assertThat(z.getDelegate(), instanceOf(Node.class)); xoManager.currentTransaction().commit();