@Test
public void successPostsResponse() throws Exception {

    when(mNetwork.performRequest(any(Request.class)))
            .thenReturn(new NetworkResponse(CANNED_DATA));
    mDispatcher.processRequest(mRequest);
    ArgumentCaptor<Response> response = ArgumentCaptor.forClass(Response.class);
    verify(mDelivery).postResponse(any(Request.class), response.capture());
    assertTrue(response.getValue().isSuccess());
    assertEquals(response.getValue().result, new String(CANNED_DATA, StandardCharsets.UTF_8));
    verify(mDelivery, never()).postError(any(Request.class), any(VolleyError.class));
}