private static void deleteDirectory(final String location) throws IOException {
        // TestHelper creates the directory and we need it not to exist
        assertTrue(new File(location).isDirectory());
        assertTrue(new File(location).exists());
        FileUtils.deleteDirectory(new File(location));
        assertFalse(new File(location).exists());
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/FileSystemStorageCheck.java