    @Test(dataProvider = "invalidateData")
    public void invalidate(String prefix, boolean readOnly, String key, String memcacheKey) {

        MemcachedClient client = mock(MemcachedClient.class);
        MemcachedResponseStore store = new MemcachedResponseStore(client, prefix, readOnly);
        store.invalidate(key);

        if (!readOnly) {
            verify(client).delete(memcacheKey);
        }

        verifyNoMoreInteractions(client);
    }