def METHOD_NAME(self, json_dumps_mock):
    data = ["foo"]
    expected = "bar"
    json_dumps_mock.return_value = expected
    generator = LogicalIdGenerator(self.prefix, data_obj=data)
    self.assertEqual(expected, generator._stringify(data))
    json_dumps_mock.assert_called_with(data, separators=(",", ":"), sort_keys=True)