// Verify : The resouce should contain a Result with proxies to all of the stored objects
assertThat(resource.getContents().size(), is(1));
assertThat(resource.getContents().get(0), is(instanceOf(ECollection.class)));
ECollection eCollection = (ECollection) resource.getContents().get(0);
assertThat(eCollection.getValues().size(), is(numberTargets));
for (int i = 0; i < numberTargets; i++)
{
assertThat(eCollection.getValues().get(i), is(instanceOf(TargetObject.class)));
TargetObject targetObject = (TargetObject) eCollection.getValues().get(i);
assertThat(targetObject.getSingleAttribute(), is("junit " + i));
}
}