### Question:
Numbers { public static int unsignedShortToInt( short value ) { return value & 0xFFFF; }  static boolean isPowerOfTwo( long value ); static int log2floor( long value ); static short safeCastIntToUnsignedShort( int value ); static byte safeCastIntToUnsignedByte( int value ); static int safeCastLongToInt( long value ); static short safeCastLongToShort( long value ); static short safeCastIntToShort( int value ); static byte safeCastLongToByte( long value ); static int unsignedShortToInt( short value ); static int unsignedByteToInt( byte value );  }### Answer:
@Test void castUnsignedShortToInt() { assertEquals( 1, unsignedShortToInt( (short) 1 ) ); assertEquals( Short.MAX_VALUE, unsignedShortToInt( Short.MAX_VALUE ) ); assertEquals( (Short.MAX_VALUE << 1) | 1, unsignedShortToInt( (short) -1 ) ); }