@Test
    public void testUploadToHdfs() throws IOException {
        System.setProperty("HADOOP_USER_NAME", "hduser");
        Injector injector = Guice.createInjector(new Context());
        HDFS hdfs = injector.getInstance(HDFS.class);
        hdfs.init();
        hdfs.deleteDirectory("/input/");
        hdfs.createDirectory("/input/");
        hdfs.upload("/Users/linse/IdeaProjects/cloudera_mvn_test/src/test/resources/CommentsHead.xml", "/input/");
        hdfs.list("/");
        hdfs.list("/input/");
    }