assertEquals(mappedClasses.iterator().next().getClazz(), VersionedChildEntity.class);
}
@Test
public void testUpdatesToVersionedFileAreReflectedInTheDatastore() {
final Versioned version1 = new Versioned();
version1.setName("foo");
this.getDs().save(version1);
final Versioned version1Updated = getDs().get(Versioned.class, version1.getId());
version1Updated.setName("bar");
this.getDs().merge(version1Updated);
final Versioned versionedEntityFromDs = this.getDs().get(Versioned.class, version1.getId());
assertEquals(version1Updated.getName(), versionedEntityFromDs.getName());
}