@Test
public void shouldPackFourUnsignedShortIntegersIntoLong()
{

    final int int1 = 45454;
    final int int2 = 32234;
    final int int3 = 12231;
    final int int4 = 65000;
    final long longValue = ByteUtil.packLongWithUnsignedShortInts(int1, int2, int3, int4);
    final byte[] longBytes = new byte[8];
    Bits.writeLong(longBytes, 0, longValue);
    assertEquals(int1, Bits.readShort(longBytes, 0) & 0xFFFF);
    assertEquals(int2, Bits.readShort(longBytes, 2) & 0xFFFF);
    assertEquals(int3, Bits.readShort(longBytes, 4) & 0xFFFF);
    assertEquals(int4, Bits.readShort(longBytes, 6) & 0xFFFF);
}