assertEquals(IdClass.class, a1[2].annotationType());
}
public void testSortAnnotations2() throws Exception {
EntityMapLoaderContext context = new EntityMapLoaderContext(
new MockPersistenceUnitInfo());
EntityMapAnnotationLoader loader = new EntityMapAnnotationLoader(context);
loader.loadClassMapping(MockAnnotatedBeanOrdering.class);
JpaEntityMap map = context.getEntityMap();
JpaEntity entity = map.getEntities().iterator().next();