@Test
void getComponentDescriptorList() throws Exception
{

    EmbeddableComponentManager ecm = new EmbeddableComponentManager();
    DefaultComponentDescriptor<Role> d1 = new DefaultComponentDescriptor<>();
    d1.setRoleType(Role.class);
    d1.setRoleHint("hint1");
    ecm.registerComponent(d1);
    DefaultComponentDescriptor<Role> d2 = new DefaultComponentDescriptor<>();
    d2.setRoleType(Role.class);
    d2.setRoleHint("hint2");
    ecm.registerComponent(d2);
    List<ComponentDescriptor<Role>> cds = ecm.getComponentDescriptorList(Role.class);
    assertEquals(2, cds.size());
    assertTrue(cds.contains(d1));
    assertTrue(cds.contains(d2));
}