### Question:
ArgumentList { void treatNextAsLongOption() { if ( HYPHEN_CHAR != arguments[ currentIndex ].charAt( 0 ) ) arguments[ currentIndex ] = DOUBLE_HYPHEN + arguments[ currentIndex ]; } ArgumentList( String... arguments );   }### Answer:
@Test public void treatNextAsLongOption() { args.treatNextAsLongOption(); assertNextArgumentIs( "-a" ); args.treatNextAsLongOption(); assertNextArgumentIs( "--b" ); args.treatNextAsLongOption(); assertNextArgumentIs( "--c" ); assertNoMoreArguments(); }