@Test
public void shouldReturnInternalServerErrorIfAnErrorIsThrownInServiceCode() {

    when(distributedStore.getAll()).thenThrow(new IllegalStateException());
    ClientResponse response = getClientResponseForUnsuccessfulRequest();
    assertThat(response.getClientResponseStatus(), equalTo(ClientResponse.Status.INTERNAL_SERVER_ERROR));
    assertThat(response.getLocation(), nullValue());
}