}
@Test
public void translationIndex( )
{
TranslationIndex index = m_index.getTranslationIndex();
// base class
assertThat( index.getSuperclassName( m_baseClass.getName() ), is( nullValue() ) );
assertThat( index.getAncestry( m_baseClass.getName() ), is( empty() ) );
assertThat( index.getSubclassNames( m_baseClass.getName() ), containsInAnyOrder(
m_subClassA.getName(),
m_subClassB.getName()
) );
// subclass a
assertThat( index.getSuperclassName( m_subClassA.getName() ), is( m_baseClass.getName() ) );
assertThat( index.getAncestry( m_subClassA.getName() ), contains( m_baseClass.getName() ) );
assertThat( index.getSubclassNames( m_subClassA.getName() ), contains( m_subClassAA.getName() ) );
// subclass aa
assertThat( index.getSuperclassName( m_subClassAA.getName() ), is( m_subClassA.getName() ) );
assertThat( index.getAncestry( m_subClassAA.getName() ), contains(
m_subClassA.getName(),
m_baseClass.getName()
) );
assertThat( index.getSubclassNames( m_subClassAA.getName() ), is( empty() ) );
// subclass b
assertThat( index.getSuperclassName( m_subClassB.getName() ), is( m_baseClass.getName() ) );
assertThat( index.getAncestry( m_subClassB.getName() ), contains( m_baseClass.getName() ) );
assertThat( index.getSubclassNames( m_subClassB.getName() ), is( empty() ) );
}