Assert.assertEquals("Adding mod_cluster extension failed! " + request.toJSONString(false), "success", outcome);
// Now lets execute subsystem add operation but we need to specify a connector
ctx.getBatchManager().activateNewBatch();
Batch b = ctx.getBatchManager().getActiveBatch();
b.add(ctx.toBatchedCommand("/socket-binding-group=standard-sockets/socket-binding=modcluster:add(multicast-port=23364, multicast-address=224.0.1.105)"));
b.add(ctx.toBatchedCommand("/subsystem=modcluster:add"));
b.add(ctx.toBatchedCommand("/subsystem=modcluster/mod-cluster-config=configuration:add(connector=http,advertise-socket=modcluster)"));
request = b.toRequest();
b.clear();
ctx.getBatchManager().discardActiveBatch();