def METHOD_NAME(self):
    """
    Testing user edited relation type 'isPartOf' is updated to 'isReferencedBy' when we run the command.
    """
    # create a composite resource
    comp_res = self._create_resource()
    # check no 'isPartOf' relation exists
    metadata = comp_res.metadata
    self.assertFalse(metadata.relations.filter(type=RelationTypes.isPartOf).exists())
    self.assertFalse(metadata.relations.filter(type=RelationTypes.isReferencedBy).exists())
    # add 'isPartOf' relation that is not related to collection
    metadata.create_element('relation', type=RelationTypes.isPartOf, value="testing")
    self.assertTrue(metadata.relations.filter(type=RelationTypes.isPartOf).exists())
    # run  update command to update the type 'isPartOf' to 'isReferencedBy'
    call_command(self.update_command)
    self.assertFalse(metadata.relations.filter(type=RelationTypes.isPartOf).exists())
    self.assertEqual(metadata.relations.filter(type=RelationTypes.isReferencedBy).count(), 1)