@Test
public void testExecuteBatchCommands() throws Exception {
final File pom = getPom("execute-batch-commands-pom.xml");
final Mojo executeCommandsMojo = lookupMojo("execute-commands", pom);
executeCommandsMojo.execute();
// Read the attribute
final ModelNode address = ServerOperations.createAddress("system-property", "org.jboss.maven.plugin-batch");
final ModelNode op = ServerOperations.createReadAttributeOperation(address, "value");
final ModelNode result = executeOperation(managementClient.getControllerClient(), op);