baos = new ByteArrayOutputStream();
dos = new DataOutputStream(baos);
String first = "node.testx.com\tnode.LOCAL.com\tnode.testy.com";
Text.writeString(dos, first);
byte[] local = baos.toByteArray();
ZooKeeperExt zk = mock(ZooKeeperExt.class);
when(zk.getChildrenExt(testListName, false, false, true)).
thenReturn(testList);
when(zk.getData("remote1", false, null)).thenReturn(remote1);
when(zk.getData("remote2", false, null)).thenReturn(remote2);
when(zk.getData("local", false, null)).thenReturn(local);
InputSplitPathOrganizer lis =
new InputSplitPathOrganizer(zk, testListName, localHost, true);
final List<String> resultList = Lists.newArrayList(lis.getPathList());
assertEquals("local", resultList.get(0));
}