AfterPaneStateMachine extends TriggerStateMachine { @Override public String toString() { return "AfterPane.elementCountAtLeast(" + countElems + ")"; } private  AfterPaneStateMachine(int countElems); int getElementCount(); static AfterPaneStateMachine elementCountAtLeast(int countElems); @Override void onElement(OnElementContext c); @Override void prefetchOnMerge(MergingStateAccessor<?, ?> state); @Override void onMerge(OnMergeContext context); @Override void prefetchShouldFire(StateAccessor<?> state); @Override boolean shouldFire(TriggerStateMachine.TriggerContext context); @Override void clear(TriggerContext c); @Override boolean isCompatible(TriggerStateMachine other); @Override String toString(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override void onFire(TriggerStateMachine.TriggerContext context);  }
@Test public void testToString() { TriggerStateMachine trigger = AfterPaneStateMachine.elementCountAtLeast(5); assertEquals("AfterPane.elementCountAtLeast(5)", trigger.toString()); }