@Override
    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof RollbackRule)) {
            return false;
        }
        RollbackRule rhs = (RollbackRule) other;
        return this.exceptionName.equals(rhs.exceptionName);
    }
@Test
    public void equalsTest(){
        RollbackRule otherRollbackRuleByName = new RollbackRule(Exception.class.getName());
        RollbackRule otherRollbackRuleByName2 = new NoRollbackRule(Exception.class.getName());

        Assertions.assertNotEquals("", otherRollbackRuleByName.getExceptionName());
        Assertions.assertEquals(otherRollbackRuleByName, otherRollbackRuleByName);
        Assertions.assertEquals(otherRollbackRuleByName, otherRollbackRuleByName2);

    }