BitstreamFormat implements Serializable, ReloadableEntity<Integer> { public void setSupportLevel(int sl) { getBitstreamFormatService().setSupportLevel(this, sl); } 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(expected=IllegalArgumentException.class) public void testSetSupportLevelInvalidValue() { bf.setSupportLevel(5); fail("Exception should be thrown"); }
@Test(expected=IllegalArgumentException.class) public void testSetSupportLevelNegativeValue() { bf.setSupportLevel(-1); fail("Exception should be thrown"); }