inbuffer.indexOf((byte)' ', 2, -1);
fail("IndexOutOfBoundsException should have been thrown");
} catch (IndexOutOfBoundsException expected) {
}
try {
inbuffer.indexOf((byte)' ', 2, 18);
fail("IndexOutOfBoundsException should have been thrown");
} catch (IndexOutOfBoundsException expected) {
}
assertEquals(10, inbuffer.indexOf((byte)'y', 2, 17));
}