public void testEncodeArrayLineBreak2WrongIndex() {
try {
CharArrayWriter writer = new CharArrayWriter();
char[] source = stringLineBreak.toCharArray();
HTMLEncoder.encode(source, 0, source.length + 5, false, writer);
assertEquals(stringLineBreakEncoded2.toCharArray(), writer.toCharArray());
} catch (IOException e) {
fail(e.getMessage());
}
}