def METHOD_NAME(
        self,
        resource_id_mock,
        redis_mock,
        add_new_resource_mock,
        requests_mock):
    """Test the resource availability with non-default mask"""
    resource_id_mock.return_value = 1
    redis_mock.smembers.return_value = []
    add_new_resource_mock.return_value = {"default_mask": 2}
    requests_mock.return_value = TestResponse()
    test_dataset = mock.MagicMock()
    type(test_dataset).type = mock.PropertyMock(return_value="Test")
    self.assertEqual(check_resource_availability(test_dataset, user_id),
                     ['foo'])