final void checkAvailable(int pos, int k) throws EOFException {
        if (pos < 0) {
            throw new IllegalArgumentException("Negative pos! -> " + pos);
        }
        if ((size - pos) < k) {
            throw new EOFException("Cannot read " + k + " bytes!");
        }
    }
@Test(expected = IllegalArgumentException.class)
    public void testCheckAvailable() throws Exception {
        in.checkAvailable(-1, INIT_DATA.length);
    }