ThreadLocalContextHolder { public static void cleanupThread() { THREAD_WITH_CONTEXT.remove(); } ThreadLocalContextHolder(); static void put(String key, Object payload); static Object get(String key); static void cleanupThread();  }
@Test public void testCleanupThread() { System.out.println("cleanupThread"); ThreadLocalContextHolder.put(KEY, VALUE); ThreadLocalContextHolder.cleanupThread(); Object result = ThreadLocalContextHolder.get(KEY); assertThat(result).isNull(); }