@Test
public void should_build_hierarchy()
{
// given
DescriptorHierarchyBuilder builder = DescriptorHierarchyBuilder.newInstance(entities, superClasses);
// when
builder.buildHierarchy();
// then
assertEquals(entities.size(), 2);
assertEquals(EntityLevel3.class, entities.get(0).getEntityClass());
assertEquals(EntityLevel5.class, entities.get(1).getEntityClass());