public static void writeUnsignedShortLittleEndian(int data, ByteArrayOutputStream out) {
        out.write((byte) (data & 0xFF));
        out.write((byte) ((data >>> 8) & 0xFF));
    }
@Test
	public void testWriteUnsignedShortLittleEndian() {
		ByteArrayOutputStream out = new ByteArrayOutputStream();
		ByteHelper.writeUnsignedShortLittleEndian(1044, out);

		Assert.assertArrayEquals(new byte[] {20, 4}, out.toByteArray());
	}