public static SortedSet<String> getExpected(String expectedFiles) {
    if (expectedFiles.length() == 2) return new TreeSet<>();
    String[] paths = expectedFiles.substring(1, expectedFiles.length() - 1).split(",");
    SortedSet<String> result = new TreeSet<>();
    for (String path: paths) {
      result.add(path.trim());
    }
    return result;
  }
Test util methods to work with local dirs, {@link DirDiff}s and {@link DirIndex}es.
samza-core/src/test/java/org/apache/samza/storage/blobstore/util/BlobStoreTestUtil.java