AfterEach extends Trigger { @Override public String toString() { StringBuilder builder = new StringBuilder("AfterEach.inOrder("); Joiner.on(", ").appendTo(builder, subTriggers); builder.append(")"); return builder.toString(); } private  AfterEach(List<Trigger> subTriggers); @SafeVarargs static AfterEach inOrder(Trigger... triggers); static AfterEach inOrder(List<Trigger> triggers); @Override Instant getWatermarkThatGuaranteesFiring(BoundedWindow window); @Override boolean mayFinish(); @Override String toString();  }
@Test public void testToString() { Trigger trigger = AfterEach.inOrder( StubTrigger.named("t1"), StubTrigger.named("t2"), StubTrigger.named("t3")); assertEquals("AfterEach.inOrder(t1, t2, t3)", trigger.toString()); }