@Transactional
public void testProjectGroupToNamed() {
Group group = new Group().persist();
group.setName("developers");
Named named = (Named)group.projectTo(Named.class);
assertEquals("named.name","developers", named.getName());
assertEquals("nameds node name property","developers", named.getPersistentState().getProperty("name"));
}
}