public void test() throws Exception {
Scanner scanner = new MockInstance("counttest").getConnector("root", "".getBytes()).createScanner("dirlisttable", new Authorizations());
scanner.fetchColumn(new Text("dir"), new Text("counts"));
assertFalse(scanner.iterator().hasNext());
FileCount fc = new FileCount("counttest", null, "root", "", "dirlisttable", "", "", true);
fc.run();
ArrayList<Pair<String,String>> expected = new ArrayList<Pair<String,String>>();
expected.add(new Pair<String,String>(QueryUtil.getRow("").toString(), "1,0,3,3"));
expected.add(new Pair<String,String>(QueryUtil.getRow("/local").toString(), "2,1,2,3"));
expected.add(new Pair<String,String>(QueryUtil.getRow("/local/user1").toString(), "0,2,0,2"));