### Question:
StreamDocument extends CommonDocument { @Override public MimeType getMimeType() { MimeType mimeType = super.getMimeType(); logger.debug("Mime type: " + mimeType); return mimeType; } StreamDocument(InputStream stream, String documentName, MimeType mimeType); @Override InputStream openStream(); @Override void setName(String s); @Override String getAbsolutePath(); @Override MimeType getMimeType(); @Override void setMimeType(MimeType mimeType); @Override void save(String filePath); @Override String getDigest(DigestAlgorithm digestAlgorithm);  }### Answer:
@Test public void getMimeType() throws Exception { Assert.assertEquals("text/plain", this.document.getMimeType().getMimeTypeString()); }