### Question:
AttributeNode extends BxmlNodeWithTokenAndString { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } AttributeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor); String getAttributeName(); BxmlNode getValue();  }### Answer:
@Test public void testVisit() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); attributeNode.accept(mock); verify(mock).visit(attributeNode); verifyNoMoreInteractions(mock); }