### Question:
RootNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } RootNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor); List<VariantTypeNode> getSubstitutions(); @Override String toString();  }### Answer:
@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); rootNode.accept(mock); verify(mock).visit(rootNode); verifyNoMoreInteractions(mock); }