@Test
void hasComponent() throws Exception
{

    EmbeddableComponentManager ecm = new EmbeddableComponentManager();
    DefaultComponentDescriptor<Role> d1 = new DefaultComponentDescriptor<>();
    d1.setRoleType(Role.class);
    d1.setRoleHint("default");
    ecm.registerComponent(d1);
    assertTrue(ecm.hasComponent(Role.class));
    assertTrue(ecm.hasComponent(Role.class, "default"));
}