### Question:
Intercom { public static void clearThreadLocalContext() { threadContext.remove(); }  static long currentTimestamp(); static int getConnectionTimeout(); @SuppressWarnings("UnusedDeclaration") static void setConnectionTimeout(int connectionTimeout); static int getRequestTimeout(); @SuppressWarnings("UnusedDeclaration") static void setRequestTimeout(int requestTimeout); static boolean isRequestUsingCaches(); static void setRequestUsingCaches(boolean requestUsingCaches); static HttpConnectorSupplier getHttpConnectorSupplier(); static void setHttpConnectorSupplier(HttpConnectorSupplier supplier); static void setToken(String token); static URI getApiBaseURI(); static void setApiBaseURI(URI apiBaseURI); static String getToken(); static boolean usesThreadLocal(); static void setUseThreadLocal(boolean useThreadLocal); static void clearThreadLocalContext(); static void clearThreadLocalContexts(); static final String USER_AGENT; }### Answer:
@Test public void testClearThreadLocalContext() throws Exception { Intercom.setUseThreadLocal(true); Intercom.setToken("testToken"); assertEquals("testToken", Intercom.getToken()); Intercom.clearThreadLocalContext(); assertNull(Intercom.getToken()); Intercom.setToken("testToken2"); assertEquals("testToken2", Intercom.getToken()); }