StorageProviderUtil { public static List<String> getList(Iterator<String> iterator) { List<String> contents = new ArrayList<String>(); while (iterator.hasNext()) { contents.add(iterator.next()); } return contents; } private  StorageProviderUtil(); static Map<String, String> loadProperties(InputStream is); static ByteArrayInputStream storeProperties(
        Map<String, String> propertiesMap); static String compareChecksum(StorageProvider provider,
                                         String spaceId,
                                         String contentId,
                                         String checksum); static String compareChecksum(String providerChecksum,
                                         String spaceId,
                                         String contentId,
                                         String checksum); static boolean contains(Iterator<String> iterator, String value); static long count(Iterator<String> iterator); static List<String> getList(Iterator<String> iterator); static Map<String, String> createContentProperties(String absolutePath,
                                                              String creator); static Map<String, String> removeCalculatedProperties(Map<String, String> contentProperties);  }
@Test public void testGetList() throws Exception { List<String> testList = new ArrayList<String>(); testList.add("foo"); testList.add("bar"); testList.add("baz"); assertEquals(testList, StorageProviderUtil.getList(testList.iterator())); }