BooleanConversions { @Nonnull static UShort booleanToUInt16(@Nonnull Boolean b) { return b ? ushort(1) : ushort(0); } private  BooleanConversions();   }
@Test public void testBooleanToUInt16() { assertEquals(booleanToUInt16(false), ushort(0)); assertEquals(booleanToUInt16(true), ushort(1)); }