buf.append(Integer.toString(i)).append('-');
}
String s = buf.toString();
Reader r = new StringReader(s);
InputStream is = new ReaderInputStream(r);
InputRepresentation ir = new InputRepresentation(is);
ir.setCharacterSet(CharacterSet.ISO_8859_1);
assertEquals("Value", s, ir.getText());