### Question:
ConditionalSubstitutionNode extends BxmlNodeWithToken { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } ConditionalSubstitutionNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); int getIndex(); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor);  }### Answer:
@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); conditionalSubstitutionNode.accept(mock); verify(mock).visit(conditionalSubstitutionNode); verifyNoMoreInteractions(mock); }