configs.put("A", getConfig(true, 20, "executor", "fixed", "threadNr", "2"));
expect(ctx.getBeansOfType(SpringJolokiaConfigHolder.class)).andReturn(configs);
replay(ctx);
server.setApplicationContext(ctx);
server.afterPropertiesSet();
JolokiaServerConfig cfg = server.getServerConfig();
assertEquals(cfg.getExecutor(),"fixed");
assertEquals(cfg.getThreadNr(),2);
assertEquals(cfg.getContextPath(),"/j4p/");
checkServerAndStop(server);
}