@Test
public void shouldReturnInternalServerErrorIfGetFailsBecauseADatabaseExceptionIsThrownInsideDistributedStore() {

    when(distributedStore.get(KEY)).thenReturn(Futures.<KeyValue>immediateFailedFuture(new StorageException(new SQLException("DATABASE GONE"))));
    assertThatValidGetRequestReturnsErrorStatus(ClientResponse.Status.INTERNAL_SERVER_ERROR);
}