@Test
public void shouldCreateFromIterator() throws Exception {
Iterator<? extends CloudResource> i = Collections.singleton(new CloudResource("index.html", 93L, SHA)).iterator();
CloudResources o = new CloudResources(i);
List<CloudResource> l = o.asList();
assertThat(l.size(), is(1));
CloudResource r = l.get(0);
assertThat(r.getFilename(), is("index.html"));
assertThat(r.getSha1(), is(SHA));
assertThat(r.getSize(), is(93L));