@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);
}