@Test(dataProvider = "getData")
public void get(String prefix, boolean readOnly, String key, String memcacheKey, CachedResponse response) {

    MemcachedClient client = mock(MemcachedClient.class);
    MemcachedResponseStore store = new MemcachedResponseStore(client, prefix, readOnly);
    when(client.get(eq(memcacheKey), any(Transcoder.class))).thenReturn(response);
    Optional<CachedResponse> getResponse = store.get(key);
    if (response == null) {
        assertFalse(getResponse.isPresent());
    } else {
        assertSame(getResponse.get(), response);
    }
    verify(client).get(eq(memcacheKey), any(Transcoder.class));
}