public void writeUbyte(int value) throws IOException {
        if (value < 0 || value > 0xFF) {
            throw new ExceptionWithContext("Unsigned byte value out of range: %d", value);
        }
        write(value);
    }
@Test(expected=ExceptionWithContext.class)
    public void testWriteUbyteOutOfBounds() throws IOException {
        writer.writeUbyte(-1);
    }