@Test
public void getFileEndingTest() {

    embedding.setMimeType(MimeType.PNG);
    assertThat(embedding.getFileEnding(), is("png"));
    embedding.setMimeType(MimeType.GIF);
    assertThat(embedding.getFileEnding(), is("gif"));
    embedding.setMimeType(MimeType.BMP);
    assertThat(embedding.getFileEnding(), is("bmp"));
    embedding.setMimeType(MimeType.JPEG);
    assertThat(embedding.getFileEnding(), is("jpeg"));
    embedding.setMimeType(MimeType.HTML);
    assertThat(embedding.getFileEnding(), is("html"));
    embedding.setMimeType(MimeType.XML);
    assertThat(embedding.getFileEnding(), is("xml"));
    embedding.setMimeType(MimeType.JSON);
    assertThat(embedding.getFileEnding(), is("json"));
    embedding.setMimeType(MimeType.APPLICATION_XML);
    assertThat(embedding.getFileEnding(), is("xml"));
    embedding.setMimeType(MimeType.SVG);
    assertThat(embedding.getFileEnding(), is("svg"));
    embedding.setMimeType(MimeType.SVG_XML);
    assertThat(embedding.getFileEnding(), is("svg"));
    embedding.setMimeType(MimeType.TXT);
    assertThat(embedding.getFileEnding(), is("txt"));
    embedding.setMimeType(MimeType.PDF);
    assertThat(embedding.getFileEnding(), is("pdf"));
    embedding.setMimeType(MimeType.UNKNOWN);
    assertThat(embedding.getFileEnding(), is("unknown"));
}