BitstreamFormat implements Serializable, ReloadableEntity<Integer> { public void setMIMEType(String s) { this.mimetype = s; } protected  BitstreamFormat(); final Integer getID(); String getShortDescription(); String getDescription(); void setDescription(String s); String getMIMEType(); void setMIMEType(String s); int getSupportLevel(); boolean isInternal(); void setInternal(boolean b); List<String> getExtensions(); void setExtensions(List<String> exts); void setShortDescription(Context context, String s); void setSupportLevel(int sl); @Override boolean equals(Object other); @Override int hashCode(); @Transient
    static final int UNKNOWN; @Transient
    static final int KNOWN; @Transient
    static final int SUPPORTED; }
@Test public void testSetMIMEType() { String mime = "text/plain"; String originalMime = bf.getMIMEType(); bf.setMIMEType(mime); try { assertThat("testSetMIMEType 0", bf.getMIMEType(), notNullValue()); assertThat("testSetMIMEType 1", bf.getMIMEType(), not(equalTo(""))); assertThat("testSetMIMEType 2", bf.getMIMEType(), equalTo(mime)); } finally { bf.setMIMEType(originalMime); } }