### Question:
FailureException extends RuntimeException { public Failure getFailure() { return failure; } FailureException(Failure failure); Failure getFailure();  }### Answer:
@Test public void test_constructor_failure() { Failure failure = Failure.of(FailureReason.UNSUPPORTED, "Test"); FailureException test = new FailureException(failure); assertThat(test.getFailure()).isEqualTo(failure); }