AfterPane extends OnceTrigger { @Override public String toString() { return "AfterPane.elementCountAtLeast(" + countElems + ")"; } private  AfterPane(int countElems); int getElementCount(); static AfterPane elementCountAtLeast(int countElems); @Override boolean isCompatible(Trigger other); @Override Instant getWatermarkThatGuaranteesFiring(BoundedWindow window); @Override String toString(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }
@Test public void testToString() { Trigger trigger = AfterPane.elementCountAtLeast(5); assertEquals("AfterPane.elementCountAtLeast(5)", trigger.toString()); }