def METHOD_NAME(cls):
    # mbu
    cls.mbu = MetaBusinessUnit.objects.create(name=get_random_string(64))
    cls.bu = cls.mbu.create_enrollment_business_unit()
    cls.instance = Instance.objects.create(
        business_unit=cls.bu,
        url="https://{}.example.com".format(get_random_string(8)),
        ca_chain=build_self_signed_cert("CA")[0]
    )
    cls.instance.set_rbac_token(get_random_string(12))
    cls.token = get_random_string(12)
    cls.instance.set_report_processor_token(cls.token)
    cls.instance.save()
    cls.instance.refresh_from_db()