public static void main(String[] args) {
        final DefaultClientFactory defaultClientFactory = (DefaultClientFactory) ClientFactory.ofDefault();
        defaultClientFactory.closeOnJvmShutdown().thenRun(() -> {
            System.out.println("After ClientFactory stopped");
        });
    }
For checking the behavior of {@link DefaultClientFactory#closeOnJvmShutdown()}.
This app must output the following text:
<pre>{@code
- ClientFactory has been closed.
- After ClientFactory stopped
}</pre>
core/src/test/java/com/linecorp/armeria/client/DefaultClientFactoryShutdownTest.java