@Override
 protected void tearDown() throws Exception {
   if (fs != null) {
     fs.delete(path("/tests3a"), true);
   }
   super.tearDown();
 }
 @Override
 protected void tearDown() throws Exception {
   super.tearDown();
   if (cluster != null) {
     cluster.shutdown();
     cluster = null;
   }
 }
  @Override
  public void setUp() throws Exception {
    Configuration conf = new Configuration();

    URI testURI = URI.create(conf.get("test.fs.s3a.name"));

    boolean liveTest = testURI != null && !testURI.equals("s3a:///");

    // This doesn't work with our JUnit 3 style test cases, so instead we'll make this whole class
    // not run by default
    assumeTrue(liveTest);

    fs = new S3AFileSystem();
    fs.initialize(testURI, conf);
    super.setUp();
  }
 @Override
 protected void tearDown() throws Exception {
   super.tearDown();
   cluster.shutdown();
 }