StorageProviderUtil { public static boolean contains(Iterator<String> iterator, String value) { if (iterator == null || value == null) { return false; } while (iterator.hasNext()) { if (value.equals(iterator.next())) { return true; } } return false; } 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 testContains() throws Exception { List<String> testList = new ArrayList<String>(); assertFalse(StorageProviderUtil.contains(testList.iterator(), "foo")); testList.add("foo"); assertTrue(StorageProviderUtil.contains(testList.iterator(), "foo")); }