@Test(expectedExceptions = IllegalStateException.class,expectedExceptionsMessageRegExp = ".*not.*started.*")
public void handlerNotStarted() throws URISyntaxException, IOException {

    JolokiaHttpHandler newHandler = new JolokiaHttpHandler(getConfig());
    newHandler.doHandle(prepareExchange("http://localhost:8080/"));
}