List<Item> items = new ArrayList<Item>();
items.add(Item.create(COLLECTION_URI.resolve("item/1"), Arrays.asList(Property.value("one", Optional.of("One"), ValueFactory.createOptionalValue(1))), Collections.<Link>emptyList()));
Collection collection = Collection.builder(COLLECTION_URI).addItems(items).build();
String generated = collection.toString();
Collection parsed = new CollectionParser().parse(generated);
assertEquals(collection.toString(), parsed.toString());
}