def METHOD_NAME(self, mock_assemble):
    parser = NodeParser()
    objects = [("q", "result")]
    queue = []
    var = XmlVarFactory.create(xml_type=XmlType.TEXT, name="foo", qname="foo")
    queue.append(PrimitiveNode(var, {}, False, DerivedElement))
    self.assertTrue(parser.end(queue, objects, "author", "foobar", None))
    self.assertEqual(0, len(queue))
    self.assertEqual(("q", "result"), objects[-1])
    mock_assemble.assert_called_once_with("author", "foobar", None, objects)