SoapCollector implements Runnable { @Activate public void activate(ComponentContext componentContext) throws Exception { activate(componentContext.getProperties()); }  @Activate void activate(ComponentContext componentContext); void activate(Dictionary<String, Object> config); @Override void run(); @Reference
    public EventAdmin dispatcher; }
@Test(expected = IllegalArgumentException.class) public void testBadConfiguration() throws Exception { SoapCollector collector = new SoapCollector(); Dictionary<String, Object> config = new Hashtable<>(); collector.activate(config); }