### Question:
ValueNode extends BxmlNodeWithToken { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } ValueNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor); static final Map<Integer, VariantTypeNodeFactory> factories; }### Answer:
@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); valueNode.accept(mock); verify(mock).visit(valueNode); verifyNoMoreInteractions(mock); }