### Question:
AgnosticVisualizedGraph implements VisualizedGraph { @Override public void addTo(AgnosticCascadeBuilder builder) { builder.add(container); } AgnosticVisualizedGraph(DefaultContainerCascade container, Area dimension, boolean containsSingleNode); @Override Area getDimension(); @Override boolean isSingleNode(); @Override void translateBy(double x, double y); @Override void addTo(AgnosticCascadeBuilder builder);  }### Answer:
@Test public void addsSelfToCascade() throws Exception { AgnosticCascadeBuilder cascade = mock(AgnosticCascadeBuilder.class); agnosticVisualizedGraph.addTo(cascade); verify(cascade).add(isA(ContainerCascade.class)); }