BooleanConversions { @Nonnull static Short booleanToInt16(@Nonnull Boolean b) { return b ? (short) 1 : (short) 0; } private  BooleanConversions();   }
@Test public void testBooleanToInt16() { assertEquals((short) booleanToInt16(false), 0); assertEquals((short) booleanToInt16(true), 1); }