*/
public void testPrefixIsBoundary() throws IOException {
String text = "Line 1\r\n\r\n--boundaryyada\r\n";
ByteArrayInputStream bis = new ByteArrayInputStream(text.getBytes());
BufferedLineReaderInputStream buffer = new BufferedLineReaderInputStream(bis, 4096);
MimeBoundaryInputStream stream =
new MimeBoundaryInputStream(buffer, "boundary");
assertEquals("Line 1\r\n", read(stream, 100));
text = "--boundaryyada\r\n";
bis = new ByteArrayInputStream(text.getBytes());
buffer = new BufferedLineReaderInputStream(bis, 4096);
stream = new MimeBoundaryInputStream(buffer, "boundary");
assertEquals(-1, stream.read());
}