public void testBasic()
throws IOException
{
final String from = "Hello, World!";
ByteBuffer in = ByteBuffer.wrap(from.getBytes("utf8"));
CharsetConverter c = new CharsetConverter("utf8", "ascii");
ByteBuffer out = c.convert(in, true);
String result = toString(out, "ascii");
assertEquals(from, result);
}