'negative case for test_create_duplicate_id_retry'

@mock.patch.object(nova.objects.ResourceClass, '_get_next_id')
def test_create_duplicate_id_retry_failing(self, mock_get):

    mock_get.side_effect = (44, 44, 44, 44)
    rc1 = objects.ResourceClass(self.ctx, name='CUSTOM_IRON_NFV')
    rc1.create()
    rc2 = objects.ResourceClass(self.ctx, name='CUSTOM_TWO')
    rc2.RESOURCE_CREATE_RETRY_COUNT = 3
    self.assertRaises(exception.MaxDBRetriesExceeded, rc2.create)
