@Test
public void failWritingUInt32NotInRange() throws IOException {

    try {
        Long uint = (long) Math.pow(2, 32);
        writer.writeUInt32(uint);
        fail();
    } catch (IllegalArgumentException ignored) {
    }
    try {
        Long uint = -1L;
        writer.writeUInt32(uint);
        fail();
    } catch (IllegalArgumentException ignored) {
    }
}