@Test
public void writeUInt32() throws IOException {

    long uint = (long) Math.pow(2, 32) - 1;
    writer.writeUInt32(uint);
    assertAndResetStreamContents(
        new byte[]{(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff});
    uint = 0L;
    writer.writeUInt32(uint);
    assertAndResetStreamContents(new byte[]{0, 0, 0, 0});
    uint = 12345L;
    writer.writeUInt32(uint);
    assertAndResetStreamContents(new byte[]{0x39, 0x30, 0, 0});
}