@Test
public void analyse_Inheritances() {

    // need TreeMap for Sorting
    Map<String, Class<?>> classes = new TreeMap<String, Class<?>>();
    Map<String, Class<?>[]> inheritances;
    
    classes.put(Object.class.getName(), Object.class);
    classes.put(CharSequence.class.getName(), CharSequence.class);
    classes.put(Runnable.class.getName(), Runnable.class);
    classes.put(Thread.class.getName(), Thread.class);
    classes.put(String.class.getName(), String.class);
    
    inheritances = inheritanceAnalyser.analyse(classes);
    
    assertNotNull(inheritances);
    assertEquals(3, inheritances.size());
    assertEquals(Thread.class, inheritances.get(Runnable.class.getName())[0]);
    assertEquals(String.class, inheritances.get(CharSequence.class.getName())[0]);
    assertEquals(String.class, inheritances.get(Object.class.getName())[0]);
    assertEquals(Thread.class, inheritances.get(Object.class.getName())[1]);
}