@Test(dataProvider = "putData")
public void put(String prefix, boolean readOnly, String key, String memcacheKey, int memcacheExpiration, CachedResponse value) {

    MemcachedClient client = mock(MemcachedClient.class);
    MemcachedResponseStore store = new MemcachedResponseStore(client, prefix, readOnly);
    store.put(key, value);
    if (!readOnly) {
        verify(client).set(eq(memcacheKey), eq(memcacheExpiration), same(value), any(Transcoder.class));
    }
    verifyNoMoreInteractions(client);
}