@Test
public void handleExceptionsReturnsResponseWhenSuccessful() {

  try (Response response = resource.handleExceptions(() -> ok("ok"))) {
    assertThat(response.getStatus(), is(OK.getStatusCode()));
    assertThat(response.readEntity(String.class), is("ok"));
  }
}