@Test
public void testWriteRawLittleEndian32() {

    byte[] buf = new byte[8];
    Assert.assertEquals(4,
        ProtobufOutput.writeRawLittleEndian32(0x1A2B3C4D, buf, 2));
    Assert.assertArrayEquals(
        new byte[]{0, 0, 0x4D, 0x3C, 0x2B, 0x1A, 0, 0},
        buf);
}