private void testConvertBoth(String s1, String s2) throws IOException {
byte[] bytes = new byte[1024];
ByteArrayInputStream bais = new ByteArrayInputStream(fromString(s1));
EOLConvertingInputStream in =
new EOLConvertingInputStream(bais,
EOLConvertingInputStream.CONVERT_BOTH);
int n = in.read(bytes);
assertEquals(s2, toString(bytes, n));
}