@Test
public void handleExceptionsReturnsInternalServerErrorForOtherThrowables() {

  String response = resource.handleExceptions(() -> {
    throw new RuntimeException("error");
  }, this::toError);
  assertThat(response, is("500 error"));
}