@Test public void testSourceEntity() { Relationship rel = new MockRelationship(); Entity tstEntity = new MockEntity(); rel.setSourceEntity(tstEntity); assertSame(tstEntity, rel.getSourceEntity()); }