inbuffer.indexOf(b2, -1, 3);
fail("IndexOutOfBoundsException should have been thrown");
} catch (IndexOutOfBoundsException expected) {
}
try {
inbuffer.indexOf(b2, 1, 3);
fail("IndexOutOfBoundsException should have been thrown");
} catch (IndexOutOfBoundsException expected) {
}
try {
inbuffer.indexOf(b2, 2, -1);