assertThat(resource, is(notNullValue()));
assertThat(resource.getContents().size(), is(1));
assertThat(resource.getContents().get(0), is(instanceOf(MongoCursor.class)));
MongoCursor cursor = (MongoCursor) resource.getContents().get(0);
Iterator<EObject> iterator = cursor.iterator();
assertThat(iterator, is(notNullValue()));
assertTrue(iterator.hasNext());
TargetObject actualObject = (TargetObject) iterator.next();
assertThat(actualObject.getSingleAttribute(), is("junit"));