@Test
@Transactional
public void testRelationshipGetProperty() {
Person p = persistedPerson("Michael", 35);
Person p2 = persistedPerson("David", 25);
Friendship f = p.knows(p2);
f.getPersistentState().setProperty("Friendship.years", 1);
assertEquals(1, f.getYears());
}