@Test
public void testUseWebserver() throws ConfigurationException {

  StaticFileRestService staticFileRestService = new StaticFileRestService();
  staticFileRestService.activate(getComponentContext(null, 100000000L));
  assertFalse(staticFileRestService.useWebserver);
  staticFileRestService.activate(getComponentContext("", 100000000L));
  assertFalse(staticFileRestService.useWebserver);
  staticFileRestService.activate(getComponentContext("false", 100000000L));
  assertFalse(staticFileRestService.useWebserver);
  staticFileRestService.activate(getComponentContext("other", 100000000L));
  assertFalse(staticFileRestService.useWebserver);
  staticFileRestService.activate(getComponentContext("true", 100000000L));
  assertTrue(staticFileRestService.useWebserver);
}