def METHOD_NAME(self):
    """Test the low-level pickling structures"""
    jsonpickle.handlers.unregister(CustomObject)
    jsonpickle.handlers.register(CustomObject, SithHandler)
    obj = CustomObject('jarjar')  # secret sith lord jarjar
    pickler = jsonpickle.pickler.Pickler()
    data = pickler.flatten(obj)
    self.assertTrue(isinstance(data, dict))
    self.assertEqual(len(data), 2)
    self.assertEqual('jarjar', data['name'])
    self.assertEqual('sith.lord', data['py/object'])