@Test
public void getSortedFactoriesByTypeClassTest() throws Exception {

    List<OrmFactory<? extends A>> result = registry.getSortedFactoriesOfType(A.class);
    assertEquals(cFactory, result.get(0));
    assertEquals(aFactory, result.get(result.size() - 1));
}