### Question:
FallbackBean { @Retry(maxRetries = 1) @Fallback(StringFallbackHandler.class) public String demonstrateFallbackHandler(boolean fallback) { if (fallback) { throw new RuntimeException("I failed somehow! Save me MicroProfile!"); } else { return defaultResponse; } }  @Retry(maxRetries = 1) @Fallback(StringFallbackHandler.class) String demonstrateFallbackHandler(boolean fallback); @Retry(maxRetries = 1) @Fallback(fallbackMethod = "fallbackMethodExample") String demonstrateFallbackMethod(boolean fallback); String fallbackMethodExample(boolean fallback); static final String defaultResponse; static final String expectedResponse; }### Answer:
@Test public void fallbackHandlerTest() { String result = fallbackBean.demonstrateFallbackHandler(true); Assert.assertTrue("Did not get the expected result", result.equals(FallbackBean.expectedResponse)); }