def METHOD_NAME(self):
    self.kwargs.update({
        'app': 'test-msi-force-set',
        'serviceName': 'cli-unittest',
        'rg': 'cli',
        'ua1': USER_IDENTITY_RESOURCE_ID_1,
        'ua2': USER_IDENTITY_RESOURCE_ID_2
    })
    self.cmd(
        'spring-cloud app identity force-set -n {app} -g {rg} -s {serviceName} --system-assigned disable --user-assigned disable',
        checks=[
            self.check('identity', None)
        ])
    self.cmd(
        'spring-cloud app identity force-set -n {app} -g {rg} -s {serviceName} --system-assigned enable --user-assigned disable',
        checks=[
            self.check('identity.type', ManagedIdentityType.SYSTEM_ASSIGNED, case_sensitive=False),
            self.exists('identity.tenantId'),
            self.exists('identity.principalId'),
            self.check('identity.userAssignedIdentities', None)
        ])
    app = self.cmd(
        'spring-cloud app identity force-set -n {app} -g {rg} -s {serviceName} --system-assigned disable --user-assigned {ua1}',
        checks=[
            self.check('identity.type', ManagedIdentityType.USER_ASSIGNED, case_sensitive=False),
            self.exists('identity.tenantId'),
            self.check('identity.principalId', None),
            self.exists('identity.userAssignedIdentities')
        ]).json_value
    user_identity_dict = self._to_lower(app['identity']['userAssignedIdentities'])
    self.assertTrue(type(user_identity_dict) == dict)
    self.assertEquals(1, len(user_identity_dict))
    self.assertTrue(self._contains_user_id_1(user_identity_dict.keys()))
    app = self.cmd(
        'spring-cloud app identity force-set -n {app} -g {rg} -s {serviceName} --system-assigned disable --user-assigned {ua2}',
        checks=[
            self.check('identity.type', ManagedIdentityType.USER_ASSIGNED, case_sensitive=False),
            self.exists('identity.tenantId'),
            self.check('identity.principalId', None),
            self.exists('identity.userAssignedIdentities')
        ]).json_value
    user_identity_dict = self._to_lower(app['identity']['userAssignedIdentities'])
    self.assertTrue(type(user_identity_dict) == dict)
    self.assertEquals(1, len(user_identity_dict))
    self.assertTrue(self._contains_user_id_2(user_identity_dict.keys()))
    app = self.cmd(
        'spring-cloud app identity force-set -n {app} -g {rg} -s {serviceName} --system-assigned enable --user-assigned {ua1} {ua2}',
        checks=[
            self.check('identity.type', ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, case_sensitive=False),
            self.exists('identity.tenantId'),
            self.exists('identity.principalId'),
            self.exists('identity.userAssignedIdentities')
        ]).json_value
    user_identity_dict = self._to_lower(app['identity']['userAssignedIdentities'])
    self.assertTrue(type(user_identity_dict) == dict)
    self.assertEquals(2, len(user_identity_dict))
    self.assertTrue(self._contains_user_id_1(user_identity_dict.keys()))
    self.assertTrue(self._contains_user_id_2(user_identity_dict.keys()))
    self.cmd(
        'spring-cloud app identity force-set -n {app} -g {rg} -s {serviceName} --system-assigned enable --user-assigned disable',
        checks=[
            self.check('identity.type', ManagedIdentityType.SYSTEM_ASSIGNED, case_sensitive=False),
            self.exists('identity.tenantId'),
            self.exists('identity.principalId'),
            self.check('identity.userAssignedIdentities', None)
        ])
    self.cmd(
        'spring-cloud app identity force-set -n {app} -g {rg} -s {serviceName} --system-assigned disable --user-assigned disable',
        checks=[
            self.check('identity', None)
        ])