@Test
void equals()
{

    DefaultComponentRole cr1 = new DefaultComponentRole();
    cr1.setRoleType(Role.class);
    cr1.setRoleHint("hint");
    assertEquals(cr1, cr1);
    DefaultComponentRole cr2 = new DefaultComponentRole();
    cr2.setRoleType(Role.class);
    cr2.setRoleHint("hint");
    assertEquals(cr1, cr2);
    DefaultComponentRole cr3 = new DefaultComponentRole();
    cr3.setRoleType(Role.class);
    cr3.setRoleHint("other");
    assertFalse(cr1.equals(cr3));
    DefaultComponentRole cr4 = new DefaultComponentRole();
    cr4.setRoleType(OtherRole.class);
    cr4.setRoleHint("hint");
    assertFalse(cr1.equals(cr4));
}