ci.removePart(ci.getPartUri(0));
}
@Test(expected=IllegalStateException.class)
public void removeMainContentPartByIndex() {
ContentItem ci = new ContentItemImpl(ciUri,blob,new SimpleMGraph()){};
ci.removePart(0);
}
@Test(expected=NoSuchPartException.class)
public void removeNonExistentPartByUri() {
ContentItem ci = new ContentItemImpl(ciUri,blob,new SimpleMGraph()){};
ci.removePart(new UriRef("urn:does.not.exist:and.can.not.be.removed"));