@Test
public void exceptionPostsError() throws Exception {

    when(mNetwork.performRequest(any(Request.class))).thenThrow(new ServerError());
    mDispatcher.processRequest(mRequest);
    verify(mDelivery).postError(any(Request.class), any(VolleyError.class));
    verify(mDelivery, never()).postResponse(any(Request.class), any(Response.class));
}