@Override
  public String toString() {
    StringBuilder builder = new StringBuilder("AfterEach.inOrder(");
    Joiner.on(", ").appendTo(builder, subTriggers);
    builder.append(")");

    return builder.toString();
  }
@Test
  public void testToString() {
    TriggerStateMachine trigger =
        AfterEachStateMachine.inOrder(
            StubTriggerStateMachine.named("t1"),
            StubTriggerStateMachine.named("t2"),
            StubTriggerStateMachine.named("t3"));

    assertEquals("AfterEach.inOrder(t1, t2, t3)", trigger.toString());
  }