@Test
public void testInGlobalTransaction() {

    assertThat(RootContext.inGlobalTransaction()).isFalse();
    RootContext.bind(DEFAULT_XID);
    assertThat(RootContext.inGlobalTransaction()).isTrue();
    RootContext.unbind();
    assertThat(RootContext.inGlobalTransaction()).isFalse();
    assertThat(RootContext.getXID()).isNull();
}