def METHOD_NAME(self):
    b = SchemaBuilder()
    slots = {
        "a b": "a_b",
        "xyz": "xyz",
        "CamelSlot": "CamelSlot",
    }
    classes = {
        "foo_bar": "FooBar",
        "class with space": "ClassWithSpace",
    }
    for k in slots.keys():
        b.add_slot(k)
    for k in classes.keys():
        b.add_class(k)
    b.add_slot("foo bar ref", range="foo_bar")
    b.add_defaults()
    fixer = SchemaFixer()
    schema = b.schema
    fixed_schema = fixer.fix_element_names(schema)
    for v in slots.values():
        self.assertIn(v, fixed_schema.slots)
    for v in classes.values():
        self.assertIn(v, fixed_schema.classes)
    self.assertEqual("FooBar", fixed_schema.slots["foo_bar_ref"].range)