### Question:
TemplateNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } TemplateNode(BinaryReader binaryReader, ChunkHeader chunkHeader); @Override String toString(); int getNextOffset(); UnsignedInteger getTemplateId(); String getGuid(); int getDataLength(); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor);  }### Answer:
@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); templateNode.accept(mock); verify(mock).visit(templateNode); verifyNoMoreInteractions(mock); }