def test_automatic_mapping(self):
        reference_mapping = {
            "testapp_childindexable": {
                "_id": {"path": "parentindexable_ptr_id"},
                "dynamic": "strict",
                "properties": {
                    "id": {"type": "integer"},
                    "polymorphic_ctype_id": {"type": "integer"},
                    "parentindexable_ptr_id": {"type": "integer"},
                    "foo": {"type": "string"},
                    "bar": {"type": "integer"}
                }
            }
        }

        self.assertDictEqual(reference_mapping, ChildIndexable.get_mapping())