@@ -0,0 +1,816 @@
+package org.jboss.loom.utils;%0A%0Aimport org.jboss.as.controller.client.helpers.ClientConstants;%0Aimport org.jboss.dmr.ModelNode;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A *%0A * @author Ondrej Zizka, ozizka at redhat.com%0A */%0Apublic class AS7CliUtilsTest %7B%0A%0A    @Test%0A    public void testFormatCommand()%7B%0A        %0A        ModelNode cmd = new ModelNode();%0A        ModelNode addr = cmd.get(ClientConstants.OP_ADDR);%0A        addr.add(%22foo%22, %22a%22);%0A        addr.add(%22bar%22, %22b%22);%0A        cmd.get(ClientConstants.OP).set(%22do-something%22);%0A        cmd.get(%22param1%22).set(%22val1%22);%0A        cmd.get(%22param2%22).set(%22val2%22);%0A        %0A        String str = AS7CliUtils.formatCommand( cmd );%0A        %0A        Assert.assertEquals( %22/foo=a/bar=b/:do-something(param1=%5C%22val1%5C%22,param2=%5C%22val2%5C%22)%22, str);%0A        %0A    %7D%0A    %0A%7D// class%0A

Add test for AS7CliUtils.formatCommand()