TransactionHookManager { public static void clear() { LOCAL_HOOKS.remove(); }  static List<TransactionHook> getHooks(); static void registerHook(TransactionHook transactionHook); static void clear();  }
@Test public void testClear() { assertThat(TransactionHookManager.getHooks()).isEmpty(); TransactionHookManager.registerHook(new TransactionHookAdapter()); assertThat(TransactionHookManager.getHooks()).isNotEmpty(); TransactionHookManager.clear(); assertThat(TransactionHookManager.getHooks()).isEmpty(); }