def METHOD_NAME(self, br, service_data):
    sb_data = service_data['txt']['sb'].encode('raw_unicode_escape')
    state_bitmap = int.from_bytes(sb_data, byteorder='big')
    logging.info(bin(state_bitmap))
    self.assertEqual((state_bitmap & 7), 1)  # connection mode = PskC
    if br.get_state() == 'disabled':
        self.assertEqual((state_bitmap >> 3 & 3), 0)  # Thread is disabled
    elif br.get_state() == 'detached':
        self.assertEqual((state_bitmap >> 3 & 3), 1)  # Thread is detached
    else:
        self.assertEqual((state_bitmap >> 3 & 3), 2)  # Thread is attached
    self.assertEqual((state_bitmap >> 5 & 3), 1)  # high availability
    self.assertEqual((state_bitmap >> 7 & 1),
                     br.get_state() not in ['disabled', 'detached'] and
                     br.get_backbone_router_state() != 'Disabled')  # BBR is enabled or not
    self.assertEqual((state_bitmap >> 8 & 1),
                     br.get_state() not in ['disabled', 'detached'] and
                     br.get_backbone_router_state() == 'Primary')  # BBR is primary or not
    self.assertEqual(service_data['txt']['nn'], br.get_network_name())
    self.assertEqual(service_data['txt']['rv'], '1')
    self.assertIn(service_data['txt']['tv'], ['1.1.0', '1.1.1', '1.2.0', '1.3.0'])