Buggy code:
public class RolloutPlanParsingTestCase extends TestCase { private final CommandLineParser parser = DefaultOperationRequestParser . INSTANCE ; private final DefaultCallbackHandler handler = new DefaultCallbackHandler ( ) ; private final MockCommandContext ctx = new MockCommandContext ( ) ; @ Test public void testHeaderListStart ( ) throws Exception { } @ Test public void testEmptyHeaders ( ) throws Exception { } @ Test public void testSingleHeader ( ) throws Exception { } @ Test public void testEndsOnHeaderSeparator ( ) throws Exception { } @ Test public void testTwoHeaders ( ) throws Exception { } @ Test public void testRolloutSingleGroupName ( ) throws Exception { } @ Test public void testEndsOnGroupPropertiesStart ( ) throws Exception { } public void testSpaceBeforeGroupPropertiesStart ( ) throws Exception { } @ Test public void testEndsOnGroupPropertiesEnd ( ) throws Exception { } @ Test public void testEndsOnGroupPropertyName ( ) throws Exception { } @ Test public void testEndsOnGroupPropertyNameValueSeparator ( ) throws Exception { } @ Test public void testEndsOnGroupPropertyValue ( ) throws Exception { } @ Test public void testEndsOnGroupPropertySeparator ( ) throws Exception { } @ Test public void testRolloutSingleGroupWithProps ( ) throws Exception { } @ Test public void testEndsOnGroupComma ( ) throws Exception { } @ Test public void testEndsOnGroupConcurrent ( ) throws Exception { } @ Test public void testNonConcurrentGroups ( ) throws Exception { } @ Test public void testNonConcurrentGroupNames ( ) throws Exception { } @ Test public void testTwoConcurrentGroups ( ) throws Exception { } @ Test public void testTwoConcurrentGroupNames ( ) throws Exception { } @ Test public void testEndsOnHeaderListEnd ( ) throws Exception { } @ Test public void testMix ( ) throws Exception { } @ Test public void testMixAgainstWholeRequest ( ) throws Exception { } @ Test public void testRolloutIdWithValue ( ) throws Exception { } @ Test public void testEndsOnPlanRef ( ) throws Exception { } @ Test public void testArgumentValueConverter ( ) throws Exception { <START_BUG> final ModelNode node = new org . jboss . as . cli . impl . HeadersArgumentValueConverter ( new MockCommandContext ( ) ) . fromString ( ( "{<seq2seq4repair_space>rollout<seq2seq4repair_space>" + ( "groupA(rolling-to-servers=true,max-failure-percentage=20)<seq2seq4repair_space>^<seq2seq4repair_space>groupB,<seq2seq4repair_space>groupC," + "groupD(rolling-to-servers=true,max-failed-servers=1)<seq2seq4repair_space>^<seq2seq4repair_space>groupE<seq2seq4repair_space>rollback-across-groups}" ) ) ) ; <END_BUG> final ModelNode expectedHeaders = new ModelNode ( ) ; final ModelNode rolloutPlan = expectedHeaders . get ( ROLLOUT_PLAN ) ; final ModelNode inSeries = rolloutPlan . get ( IN_SERIES ) ; ModelNode concurrent = new ModelNode ( ) ; ModelNode cg = concurrent . get ( CONCURRENT_GROUPS ) ; ModelNode group = cg . get ( "groupA" ) ; group . get ( "rolling-to-servers" ) . set ( "true" ) ; group . get ( "max-failure-percentage" ) . set ( "20" ) ; group = cg . get ( "groupB" ) ; inSeries . add ( ) . set ( concurrent ) ; ModelNode sg = new ModelNode ( ) ; group = sg . get ( SERVER_GROUP ) ; group . get ( "groupC" ) ; inSeries . add ( ) . set ( sg ) ; concurrent = new ModelNode ( ) ; cg = concurrent . get ( CONCURRENT_GROUPS ) ; group = cg . get ( "groupD" ) ; group . get ( "rolling-to-servers" ) . set ( "true" ) ; group . get ( "max-failed-servers" ) . set ( "1" ) ; cg . get ( "groupE" ) ; inSeries . add ( ) . set ( concurrent ) ; rolloutPlan . get ( "rollback-across-groups" ) . set ( "true" ) ; assertEquals ( expectedHeaders , node ) ; } @ Test public void testRollout ( ) throws Exception { } @ Test public void testOnlyHeaderListStart ( ) throws Exception { } protected void parse ( String opReq ) throws CommandFormatException { } }

Fix:
final ModelNode node = INSTANCE . fromString ( ctx , ( "{<seq2seq4repair_space>rollout<seq2seq4repair_space>" + ( "groupA(rolling-to-servers=true,max-failure-percentage=20)<seq2seq4repair_space>^<seq2seq4repair_space>groupB,<seq2seq4repair_space>groupC," + "groupD(rolling-to-servers=true,max-failed-servers=1)<seq2seq4repair_space>^<seq2seq4repair_space>groupE<seq2seq4repair_space>rollback-across-groups}" ) ) ) ;