public void testMissingCrLf() throws IOException
{
ByteArrayOutputStream out = new ByteArrayOutputStream();
DotTerminatedOutputStream stream = new DotTerminatedOutputStream(out);
stream.write('a');
stream.writeTerminatingSequence();
assertArrayEquals("a\r\n.\r\n".getBytes("US-ASCII"), out.toByteArray());
}
@Test
public void testMissingCrLfByteArray() throws IOException