@Test
public void detectOptionsFail() {

    LogHandler handler = EasyMock.createMock(LogHandler.class);
    handler.error(matches("^.*parse detector options.*"),isA(Exception.class));
    replay(handler);
    Configuration opts = new Configuration(ConfigKey.DETECTOR_OPTIONS,"blub: bla");
    JSONObject config = serverHandle.getDetectorOptions(opts,handler);
    assertNull(config);
    verify(handler);
}