def METHOD_NAME(self):
    tree, meta = config.get_parser("json").parse(get_content("intradoc_refs.json"))
    self.assertNotIn("$ref", tree["refs"]["whats the"], "Ref key not removed")
    self.assertEqual("key", tree["refs"]["whats the"]["secret"])
    self.assertEqual("is hard", tree["refs"]["whats the"]["nested secrets"]["vim"])
    self.assertEqual("convoluted", tree["refs"]["whats the"]["nested secrets"]["and"])
    self.assertEqual(tree["refs"]["whats the"], tree["refs"]["omitted_doc"])
    with self.assertRaises(JsonReferenceError, msg="Should raise 'ref not a dict'"):
        tree, meta = config.get_parser("json").parse(
            get_content("intradoc_nodict_ref.json")
        )