Embedding { public boolean isPlainText() { return mimeType.getContentType().equalsIgnoreCase("text/plain"); }  String getData(); void setData(final String data); String getDecodedData(); void decodeData(final String data); MimeType getMimeType(); void setMimeType(final MimeType mimeType); String getName(); void setName(final String name); String getFilename(); void setFilename(final String filename); boolean isImage(); boolean isPlainText(); String getFileEnding(); boolean isExternalContent();  }
@Test public void isPlainTextTest() { embedding.setMimeType(MimeType.TXT); assertThat(embedding.isPlainText(), is(true)); }