diff --git a/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java b/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java index 83dec723..f2434250 100644 --- a/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java +++ b/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java @@ -130,8 +130,11 @@ public class BasicCouchbasePersistentPropertyTests { * @return the actual BasicCouchbasePersistentProperty instance. */ private CouchbasePersistentProperty getPropertyFor(Field field) { - return new BasicCouchbasePersistentProperty(Property.of(field), entity, SimpleTypeHolder.DEFAULT, - PropertyNameFieldNamingStrategy.INSTANCE); + + ClassTypeInformation type = ClassTypeInformation.from(field.getDeclaringClass()); + + return new BasicCouchbasePersistentProperty(Property.of(type, field), entity, SimpleTypeHolder.DEFAULT, + PropertyNameFieldNamingStrategy.INSTANCE); } /**