LoggingUncaughtExceptionHandler { public static void setOnThread(final Thread thread) { handler.setOnThread(thread); } LoggingUncaughtExceptionHandler(); static UncaughtExceptionHandler getInstance(); static void setOnThread(final Thread thread); static void setFailureSetter(final FailureSetter failureSetter); static int getUncaughtExceptionsCount(); static void clearUncaughtExceptionsCount();  }
@Test public void verifyThatSetOnThreadSetsTheThreadsHandler() { Thread thread = new Thread(); Implementation handler = new Implementation(null); handler.setOnThread(thread); assertThat(thread.getUncaughtExceptionHandler()).isSameAs(handler); }