### Question:
RootContext { public static void assertNotInGlobalTransaction() { if (inGlobalTransaction()) { throw new ShouldNeverHappenException(); } } private  RootContext(); static void setDefaultBranchType(BranchType defaultBranchType); static String getXID(); static void bind(@Nonnull String xid); static void bindGlobalLockFlag(); static String unbind(); static void unbindGlobalLockFlag(); static boolean inGlobalTransaction(); static boolean inTccBranch(); static boolean inSagaBranch(); static BranchType getBranchType(); static void bindBranchType(@Nonnull BranchType branchType); static BranchType unbindBranchType(); static boolean requireGlobalLock(); static void assertNotInGlobalTransaction(); static Map<String, Object> entries(); static final String KEY_XID; static final String KEY_BRANCH_TYPE; static final String KEY_GLOBAL_LOCK_FLAG; static final Boolean VALUE_GLOBAL_LOCK_FLAG; }### Answer:
@Test public void testAssertNotInGlobalTransaction() { RootContext.assertNotInGlobalTransaction(); assertThat(RootContext.getXID()).isNull(); }