// add some files
Files.append("4\n5\n6\n", new File(tempDir, "x-2"), Charsets.UTF_8);
Files.append("1\n2\n3\n", new File(tempDir, "x-1"), Charsets.UTF_8);
// verify we read both files in order
List<String> lines1 = CharStreams.readLines(new InputStreamReader(scanner.nextInput()));
assertEquals(3, lines1.size());
assertEquals("[1, 2, 3]", lines1.toString());
List<String> lines2 = CharStreams.readLines(new InputStreamReader(scanner.nextInput()));
assertEquals(3, lines2.size());