@Test
public void shouldReturnInternalServerErrorIfThereIsAnErrorInMakingTheDistributedStoresCall() {

    when(distributedStore.getAll()).thenReturn(Futures.<Collection<KeyValue>>immediateFailedFuture(new IllegalStateException()));
    ClientResponse response = getClientResponseForUnsuccessfulRequest();
    assertThat(response.getClientResponseStatus(), equalTo(ClientResponse.Status.INTERNAL_SERVER_ERROR));
    assertThat(response.getLocation(), nullValue());
}