DagBuilder { @Override public String toString() { return String.format("DagBuilder (%s)", this.dag.getName()); } DagBuilder(final String name, final DagProcessor dagProcessor); Node createNode(final String name, final NodeProcessor nodeProcessor); void addParentNode(final String childNodeName, final String parentNodeName); Dag build(); @Override String toString();  }
@Test public void test_toString() { final String stringRepresentation = this.dagBuilder.toString(); assertThat(stringRepresentation).isEqualTo("DagBuilder (dag builder)"); }