'Manifestation with a locally configured size have their
``maximum_size`` attribute set.'

def test_discover_manifestation_with_size(self):

    self.successResultOf(self.volume_service.create(self.volume_service.get(_to_volume_name(self.DATASET_ID), size=VolumeSize(maximum_size=((1024 * 1024) * 100)))))
    manifestation = Manifestation(dataset=Dataset(dataset_id=self.DATASET_ID, maximum_size=((1024 * 1024) * 100)), primary=True)
    api = P2PManifestationDeployer(u'example.com', self.volume_service, node_uuid=self.node_uuid)
    d = api.discover_state(DeploymentState(nodes={self.EMPTY_NODESTATE}), persistent_state=PersistentState())
    self.assertEqual(self.successResultOf(d).node_state.manifestations[self.DATASET_ID], manifestation)
