BooleanOrRolloverCondition implements RolloverCondition { @Override public void accept(Visitor visitor) { notNull(visitor, "visitor must be non-null"); firstCondition.accept(visitor); visitor.visit(this); secondCondition.accept(visitor); } BooleanOrRolloverCondition(
      RolloverCondition firstCondition, RolloverCondition secondCondition); @Override boolean isRolloverReady(PacketBuffer packetBuffer); @Override void accept(Visitor visitor); @Override String toString();  }
@Test public void testAccept() { RolloverCondition.Visitor visitor = mock(RolloverCondition.Visitor.class); condition.accept(visitor); verify(firstCondition).accept(visitor); verify(secondCondition).accept(visitor); verify(visitor).visit(condition); }