@Test
public void shouldReturnInternalServerErrorIfGetFailsBecauseAnExceptionIsThrownInServiceCode() {

    when(distributedStore.get(KEY)).thenThrow(new IllegalStateException("service code terminated unexpectedly"));
    assertThatValidGetRequestReturnsErrorStatus(ClientResponse.Status.INTERNAL_SERVER_ERROR);
}