@Test
public void asRuleForObjectThatHasProxied() {

    Object rule = new DummyRule();
    Rule proxy1 = RuleProxy.asRule(rule);
    Rule proxy2 = RuleProxy.asRule(proxy1);
    assertEquals(proxy1.getDescription(), proxy2.getDescription());
    assertEquals(proxy1.getName(), proxy2.getName());
}