### Question:
StreamDocument extends CommonDocument { @Override public String getAbsolutePath() { return temporaryFile.getAbsolutePath(); } 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 getAbsolutePath() throws Exception { Assert.assertTrue(this.document.getAbsolutePath(), this.document.getAbsolutePath().matches(".*digidoc4j.*.\\.tmp")); }