Buggy code:
private static final CLOptionDescriptor CASE_CHECK = new CLOptionDescriptor ( "charCheck" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . CASE_CHECK_OPT , "check<seq2seq4repair_space>character<seq2seq4repair_space>case<seq2seq4repair_space>sensitivity" ) ; private static final CLOptionDescriptor YOU = new CLOptionDescriptor ( "you" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . YOU_OPT , "you" ) ; private static final CLOptionDescriptor CLEAR1 = new CLOptionDescriptor ( "c" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . CLEAR1_OPT , "c" ) ; private static final CLOptionDescriptor CLEAR2 = new CLOptionDescriptor ( "l" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . CLEAR2_OPT , "l" ) ; private static final CLOptionDescriptor CLEAR3 = new CLOptionDescriptor ( "e" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . CLEAR3_OPT , "e" ) ; private static final CLOptionDescriptor CLEAR5 = new CLOptionDescriptor ( "r" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . CLEAR5_OPT , "r" ) ; private static final CLOptionDescriptor BLEE = new CLOptionDescriptor ( "blee" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . BLEE_OPT , "blee" ) ; private static final CLOptionDescriptor ALL = new CLOptionDescriptor ( "all" , CLOptionDescriptor . ARGUMENT_DISALLOWED , ClutilTestCase . ALL_OPT , "all" , new CLOptionDescriptor [ ] { ClutilTestCase . BLEE } ) ; private static final CLOptionDescriptor FILE = new CLOptionDescriptor ( "file" , CLOptionDescriptor . ARGUMENT_REQUIRED , ClutilTestCase . FILE_OPT , "the<seq2seq4repair_space>build<seq2seq4repair_space>file." ) ; private static final CLOptionDescriptor TAINT = new CLOptionDescriptor ( "taint" , CLOptionDescriptor . ARGUMENT_OPTIONAL , ClutilTestCase . TAINT_OPT , "turn<seq2seq4repair_space>on<seq2seq4repair_space>tainting<seq2seq4repair_space>checks<seq2seq4repair_space>(optional<seq2seq4repair_space>level)." ) ; private static final CLOptionDescriptor [ ] OPTIONS = new CLOptionDescriptor [ ] { new CLOptionDescriptor ( "none" , ( ( CLOptionDescriptor . ARGUMENT_DISALLOWED ) | ( CLOptionDescriptor . DUPLICATES_ALLOWED ) ) , '0' , "no<seq2seq4repair_space>parameter" ) , new CLOptionDescriptor ( "optional" , ( ( CLOptionDescriptor . ARGUMENT_OPTIONAL ) | ( CLOptionDescriptor . DUPLICATES_ALLOWED ) ) , '?' , "optional<seq2seq4repair_space>parameter" ) , new CLOptionDescriptor ( "one" , ( ( CLOptionDescriptor . ARGUMENT_REQUIRED ) | ( CLOptionDescriptor . DUPLICATES_ALLOWED ) ) , '1' , "one<seq2seq4repair_space>parameter" ) , new CLOptionDescriptor ( "two" , ( ( CLOptionDescriptor . ARGUMENTS_REQUIRED_2 ) | ( CLOptionDescriptor . DUPLICATES_ALLOWED ) ) , '2' , "two<seq2seq4repair_space>parameters" ) } ; public ClutilTestCase ( ) { } public ClutilTestCase ( String name ) { } public void testOptionalArgWithSpace ( ) { } public void testOptionalArgLong ( ) { } public void testOptionalArgLongEquals ( ) { } public void testShortOptArgUnenteredBeforeOtherOpt ( ) { } public void testOptionalArgsWithArgShortBeforeOtherOpt ( ) { } public void testOptionalArgsWithArgShortEqualsBeforeOtherOpt ( ) { } public void testOptionalArgsNoArgShortBeforeOtherOpt ( ) { } public void testFullParse ( ) { } public void testDuplicateOptions ( ) { } public void testIncompatableOptions ( ) { } public void testSingleArg ( ) { } public void testSingleArg2 ( ) { } public void testSingleArg3 ( ) { } public void testSingleArg4 ( ) { } public void testSingleArg5 ( ) { } public void testSingleArg6 ( ) { } public void testSingleArg7 ( ) { } public void testSingleArg8 ( ) { } public void testSingleArg9 ( ) { } public void testCombinedArgs1 ( ) { } public void testCombinedArgs2 ( ) { } public void testCombinedArgs3 ( ) { } public void testCombinedArgs4 ( ) { } public void test2ArgsParse ( ) { } public void test2ArgsParse2 ( ) { } public void test2ArgsParse3 ( ) { } public void test2ArgsParse4 ( ) { } public void testPartParse ( ) { } public void test2PartParse ( ) { } public void test2PartPartialParse ( ) { final CLOptionDescriptor [ ] options1 = new CLOptionDescriptor [ ] { ClutilTestCase . YOU , ClutilTestCase . ALL , ClutilTestCase . CLEAR1 } ; final CLOptionDescriptor [ ] options2 = new CLOptionDescriptor [ ] { } ; final ParserControl control1 = new AbstractParserControl ( ) { @ Override public boolean isFinished ( final int lastOptionCode ) { return lastOptionCode == ( ClutilTestCase . CLEAR1_OPT ) ; } } ; final CLArgsParser parser1 = new CLArgsParser ( ClutilTestCase . ARGLIST1 , options1 , control1 ) ; assertNull ( parser1 . getErrorString ( ) , parser1 . getErrorString ( ) ) ; final List < CLOption > clOptions1 = parser1 . getArguments ( ) ; final int size1 = clOptions1 . size ( ) ; assertEquals ( size1 , 4 ) ; assertEquals ( clOptions1 . get ( 0 ) . getDescriptor ( ) . getId ( ) , ClutilTestCase . YOU_OPT ) ; assertEquals ( clOptions1 . get ( 1 ) . getDescriptor ( ) . getId ( ) , 0 ) ; assertEquals ( clOptions1 . get ( 2 ) . getDescriptor ( ) . getId ( ) , ClutilTestCase . ALL_OPT ) ; assertEquals ( clOptions1 . get ( 3 ) . getDescriptor ( ) . getId ( ) , ClutilTestCase . CLEAR1_OPT ) ; <START_BUG> assertTrue ( parser1 . getUnparsedArgs ( ) [ 0 ] . equals ( "ler" ) ) ; <END_BUG> final CLArgsParser parser2 = new CLArgsParser ( parser1 . getUnparsedArgs ( ) , options2 ) ; assertNull ( parser2 . getErrorString ( ) , parser2 . getErrorString ( ) ) ; final List < CLOption > clOptions2 = parser2 . getArguments ( ) ; final int size2 = clOptions2 . size ( ) ; assertEquals ( size2 , 2 ) ; assertEquals ( clOptions2 . get ( 0 ) . getDescriptor ( ) . getId ( ) , 0 ) ; assertEquals ( clOptions2 . get ( 1 ) . getDescriptor ( ) . getId ( ) , 0 ) ; } public void testDuplicatesFail ( ) { } public void testIncomplete2Args ( ) { } public void testIncomplete2ArgsMixed ( ) { } public void testIncomplete2ArgsMixedNoEq ( ) { } public void testArgumentLookup ( ) { } public void testNullLongForm ( ) { } public void testNullDescription ( ) { } public void testCombinations ( ) throws Exception { } private void check ( String [ ] args , String canon ) { } }

Fix:
assertEquals ( "ler" , parser1 . getUnparsedArgs ( ) [ 0 ] ) ;