RestAppender implements EventHandler { @Activate @SuppressWarnings("unchecked") public void activate(ComponentContext context) throws URISyntaxException { Dictionary<String, Object> config = context.getProperties(); activate(config); }  @Activate @SuppressWarnings("unchecked") void activate(ComponentContext context); @Override void handleEvent(Event event); @Deactivate void close(); static final String URI_PROPERTY; @Reference
    public Marshaller marshaller; }
@Test(expected = IllegalArgumentException.class) public void testEmptyURI() throws URISyntaxException { RestAppender appender = new RestAppender(); Dictionary<String, Object> config = new Hashtable<>(); appender.activate(config); }