### Question:
NameStringNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } NameStringNode(BinaryReader binaryReader, ChunkHeader chunkHeader); UnsignedInteger getNextOffset(); int getHash(); String getString(); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor);  }### Answer:
@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); nameStringNode.accept(mock); verify(mock).visit(nameStringNode); verifyNoMoreInteractions(mock); }