os.flush();
assertEquals(0, is.read());
os.write(data.getBytes());
os.flush();
assertEquals(2, is.read());
c.disconnect();
}
protected void sendDir(String path, String dirName, String fileName, String data) throws Exception {
ChannelExec c = (ChannelExec) session.openChannel("exec");
c.setCommand("scp -t -r " + path);