@Test
public void testWriteRawVarInt32() throws IOException
{

    byte[] buf = new byte[8];
    ProtobufOutput.writeRawVarInt32(0x1A2B3C4D, buf, 2);
    Assert.assertArrayEquals(
        new byte[]{0, 0, -0x33, -0x08, -0x54, -0x2F, 0x01, 0},
        buf);
}