@Test
public void testGetAncestors()
{

    unitD.setParent( unitC );
    unitC.setParent( unitB );
    unitB.setParent( unitA );
    
    List<OrganisationUnit> expected = new ArrayList<>( Arrays.asList( unitA, unitB, unitC ) );
    
    assertEquals( expected, unitD.getAncestors() );
}