@Test
public void handleExceptionsReturnsNotFoundForNflowNotFoundException() {

  String response = resource.handleExceptions(() -> {
    throw new NflowNotFoundException("Item", 1, new Exception());
  }, this::toError);
  assertThat(response, is("404 Item 1 not found"));
}