BitstreamFormat implements Serializable, ReloadableEntity<Integer> { public void setExtensions(List<String> exts) { this.fileExtensions = exts; } 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 setExtensions() { List<String> backupExtensions = bf.getExtensions(); assertThat("setExtensions 0", bf.getExtensions().get(0), equalTo("xml")); String[] values = {"1", "2", "3"}; bf.setExtensions(Arrays.asList(values)); assertThat("setExtensions 1", bf.getExtensions(), notNullValue()); assertTrue("setExtensions 2", bf.getExtensions().size() == 3); assertThat("setExtensions 3", bf.getExtensions().get(0), equalTo("1")); assertThat("setExtensions 4", bf.getExtensions().get(1), equalTo("2")); assertThat("setExtensions 5", bf.getExtensions().get(2), equalTo("3")); bf.setExtensions(ListUtils.EMPTY_LIST); assertThat("setExtensions 6", bf.getExtensions(), notNullValue()); assertTrue("setExtensions 7", bf.getExtensions().size() == 0); bf.setExtensions(backupExtensions); }