// that are already in the Yard AND representations that are not yet
// present within the yard
String testId = "urn:yard.test.testStoreRepresentations:representation.id1";
String testId2 = "urn:yard.test.testStoreRepresentations:representation.id2";
String field = "urn:the.field:used.for.this.Test";
Yard yard = getYard();
Representation test = create(testId, false);
Representation test2 = create(testId2, true); // this creates and adds the representation
// now add both and mix Representations that are already present in the yard
// with an other that is not yet present in the yard
// change the representations to be sure to force an update even if the
// implementation checks for changes before updating a representation
test2.add(field, "test value 2");
Iterable<Representation> addedIterable = yard.store(Arrays.asList(test, test2));
assertNotNull(addedIterable);
Collection<Representation> added = asCollection(addedIterable.iterator());
// test that both the parsed Representations where stored (updated & created)
assertTrue(added.remove(test));
assertTrue(added.remove(test2));