@Test
public void shouldCacheTrue() throws Exception {

    when(mNetwork.performRequest(any(Request.class)))
            .thenReturn(new NetworkResponse(CANNED_DATA));
    mRequest.setShouldCache(true);
    mDispatcher.processRequest(mRequest);
    ArgumentCaptor<Cache.Entry> entry = ArgumentCaptor.forClass(Cache.Entry.class);
    verify(mCache).put(eq(mRequest.getCacheKey()), entry.capture());
    assertTrue(Arrays.equals(entry.getValue().data, CANNED_DATA));
}