@Test
void matchesWhenSpecificRoleSpecified()
{

    // Note: We use any class for the test but it's supposed to be a component role class.
    ComponentDescriptorRemovedEvent event = new ComponentDescriptorRemovedEvent((Type) Dummy.class);
    assertTrue(event.matches(new ComponentDescriptorRemovedEvent((Type) Dummy.class, "rolehint")));
    // Use a different class so that it doesn't match
    assertFalse(event.matches(new ComponentDescriptorRemovedEvent((Type) ComponentDescriptorRemovedEvent.class,
        "rolehint")));
}