20212223242526272829
long encoded = Version.UNION_ACTION | ((long) action.ordinal()); assertTrue( (encoded & Version.UNION_ACTION) > 0 ); long decoded = Version.UNION_MASK & ((long)encoded); Action found = Action.lookup((int)decoded); assertEquals( action, found ); } }