// Try to add content items to non-existing resources
String newfilename = "newimage.jpeg";
String mimetype = "image/png";
Language language = jpegContent.getLanguage();
ImageContent updatedContent = new ImageContentImpl(newfilename, language, mimetype, 1000, 600);
r = repository.putContent(imageURI, updatedContent, pngContentURL.openStream());
ResourceContent c = r.getContent(language);
assertEquals(pngFileSize, c.getSize());
assertEquals(mimetype, c.getMimetype());