def consultation(self, libobject: JSON, consultation: Consultation) -> Consultation:
        consultation.authoritative = libobject.get("authoritative")
        consultation.role = libobject.get("role")

        paper_backref = libobject.get("paper") or libobject.get("mst:backref")
        consultation.paper = self.retrieve(Paper, paper_backref)
        consultation.meeting = self.retrieve(Meeting, libobject.get("meeting"))
        consultation.authoritative = libobject.get("authoritative")

        return consultation
 def test_consultation(self):
     consultation = Consultation()
     data = self.api_data["https://oparl.example.org/consultation/47594"]
     self.converter.consultation(data, consultation)
     self.assertEqual(consultation.meeting.name,
                      "4. Sitzung des Finanzausschusses")
     self.assertEqual(consultation.paper.name,
                      "Antwort auf Anfrage 1200/2014")
     self.assertTrue(consultation.authoritative)
     self.assertEqual(consultation.role, "Beschlussfassung")