// ------------------------------------------------------------------------
public void testReadNonEmpty() throws Exception {
String str = "The quick brown fox jumped over the lazy dogs.";
CharList list = new ArrayCharList();
for(int i = 0; i < str.length(); i++) {
list.add(str.charAt(i));
}
Reader in = new CharIteratorReader(list.iterator());
for(int i = 0; i < str.length(); i++) {
assertEquals(str.charAt(i),in.read());
}
assertEquals(-1,in.read());
assertEquals(-1,in.read());