Test that roundtripping various types of content through a stream of a given mimetype works as expected.