}
@Test
public void testFamixAssociationAndSourceAnchorConnection() throws EvolizerException{
FamixAssociation association = new FamixAssociation();
SourceAnchor anchor = new SourceAnchor("someFile", new Integer(1),new Integer(2));
association.setSourceAnchor(anchor);
fEvolizerSession.startTransaction();
fEvolizerSession.saveObject(anchor);
fEvolizerSession.saveObject(association);
fEvolizerSession.endTransaction();
fEvolizerSession.close();
fEvolizerSession = fSessionHandler.getCurrentSession(fDBUrl);
List<FamixAssociation> associationResults = fEvolizerSession.query("from FamixAssociation", FamixAssociation.class);
assertEquals(1,associationResults.size());
FamixAssociation associationResult = associationResults.get(0);
SourceAnchor anchorresult = associationResult.getSourceAnchor();
assertEquals("someFile", anchorresult.getFile());
assertEquals(2, anchorresult.getEndPos().intValue());
assertEquals(1, anchorresult.getStartPos().intValue());
}