'A diff on a Node, which *adds* and application with a volume *and* the
manifestation for the volume, can be applied without triggering an
invariant error on the Node.'

def test_application_add(self):

    node2 = node_strategy(min_number_of_applications=1, stateful_applications=True).example()
    application = node2.applications.values()[0]
    node1 = node2.transform(['applications'], (lambda o: o.remove(application.name))).transform(['manifestations'], (lambda o: o.remove(application.volume.manifestation.dataset_id)))
    diff = create_diff(node1, node2)
    self.assertEqual(node2, diff.apply(node1))
