@Test(expected = IllegalArgumentException.class)
public void testBadConfiguration() {

    SystemCollector collector = new SystemCollector();
    this.eventAdmin = new EventAdminStub();
    collector.dispatcher = eventAdmin;
    componentContext = new ComponentContextStub();
    componentContext.getProperties().put("thread.number", "A");
    componentContext.getProperties().put("command.df1", "df -h");
    collector.activate(componentContext);
}