@Test
public void addingAndRetrieving() {
ContentItem ci = new ContentItemImpl(ciUri,blob,new SimpleMGraph()){};
UriRef partUri = new UriRef("http://foo/");
Date someObject = new Date();
ci.addPart(partUri, someObject);
ci.getMetadata().add(new TripleImpl(ciUri, new UriRef("http://example.org/ontology#hasPart"), partUri));
ci.getMetadata().add(new TripleImpl(partUri, new UriRef("http://example.org/ontology#isPartOf"),ciUri));
Assert.assertEquals(someObject, ci.getPart(partUri, Date.class));
Assert.assertEquals(someObject, ci.getPart(1, Date.class));
Assert.assertEquals(partUri, ci.getPartUri(1));