@Test
public void testRegisterHook() {

    TransactionHookAdapter transactionHookAdapter = new TransactionHookAdapter();
    TransactionHookManager.registerHook(transactionHookAdapter);
    List<TransactionHook> hooks = TransactionHookManager.getHooks();
    assertThat(hooks).isNotEmpty();
    assertThat(hooks.get(0)).isEqualTo(transactionHookAdapter);
}