@Test
public void shouldDoNothingWhenRequestIsCanceled() throws Exception {

    // request canceled
    Mockito.when(mRequest.isCanceled()).thenReturn(true);
    Assertions.assertThat(mLocalDispatcher.dispatch()).isEqualTo(true);
    Mockito.verify(mRequestQueue).take();
    Mockito.verify(mRequest).addMarker("local-queue-take");
    Mockito.verify(mRequest).finish("local-discard-canceled");
    Mockito.verifyZeroInteractions(mResponseDelivery);
}