### Question:
TemplateInstanceNode extends BxmlNodeWithToken { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } TemplateInstanceNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); TemplateNode getTemplateNode(); @Override boolean hasEndOfStream(); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor);  }### Answer:
@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); templateInstanceNode.accept(mock); verify(mock).visit(templateInstanceNode); verifyNoMoreInteractions(mock); }