@Test
    public void testHandleExceptionInAction() {
        LoggingFaultHandler handler = new LoggingFaultHandler("test", () -> {
            throw new RuntimeException("action failed");
        });
        handler.handleFault("uh oh"); // should not throw
        handler.handleFault("uh oh", new RuntimeException("yikes")); // should not throw
    }
Test handling an exception in the action callback.
server-common/src/test/java/org/apache/kafka/server/fault/LoggingFaultHandlerTest.java