ElapsedTimeRolloverCondition implements RolloverCondition { @Override public void accept(Visitor visitor) { notNull(visitor, "visitor must be non-null"); visitor.visit(this); } ElapsedTimeRolloverCondition(long elapsedTimeThreshold); long getElapsedTimeThreshold(); void setElapsedTimeThreshold(long elapsedTimeThreshold); @Override boolean isRolloverReady(PacketBuffer packetBuffer); @Override void accept(Visitor visitor); @Override String toString();  }
@Test public void testAcceptVisitor() { RolloverCondition.Visitor visitor = mock(RolloverCondition.Visitor.class); elapsedTimeRolloverCondition.accept(visitor); verify(visitor).visit(elapsedTimeRolloverCondition); }