public void test() throws Exception {
Client c = new Client("localhost");
c.connect(5, TimeUnit.SECONDS);
File dir = new File(new File("."), "subdir");
MkDir mkdir = new MkDir(dir);
c.perform(mkdir);
Assert.assertTrue(dir.exists());
File target = new File(dir, "test");
byte[] data = new byte[RANDOM.nextInt(1024 * 1024) + 1];
RANDOM.nextBytes(data);
Put put = new Put(target, data);