### Question:
CLIManager { public CommandLine parse( String[] args ) throws ParseException { String[] cleanArgs = CleanArgument.cleanArgs( args ); CommandLineParser parser = new GnuParser(); return parser.parse( options, cleanArgs ); } @SuppressWarnings( "checkstyle:linelength" )  CLIManager(); CommandLine parse( String[] args ); void displayHelp( PrintStream stdout ); static final char ALTERNATE_POM_FILE; static final char BATCH_MODE; static final char SET_SYSTEM_PROPERTY; static final char OFFLINE; static final char QUIET; static final char DEBUG; static final char ERRORS; static final char HELP; static final char VERSION; static final char SHOW_VERSION; static final char NON_RECURSIVE; static final char UPDATE_SNAPSHOTS; static final char ACTIVATE_PROFILES; static final String SUPRESS_SNAPSHOT_UPDATES; static final char CHECKSUM_FAILURE_POLICY; static final char CHECKSUM_WARNING_POLICY; static final char ALTERNATE_USER_SETTINGS; static final String ALTERNATE_GLOBAL_SETTINGS; static final char ALTERNATE_USER_TOOLCHAINS; static final String ALTERNATE_GLOBAL_TOOLCHAINS; static final String FAIL_FAST; static final String FAIL_ON_SEVERITY; static final String FAIL_AT_END; static final String FAIL_NEVER; static final String RESUME; static final String RESUME_FROM; static final String PROJECT_LIST; static final String ALSO_MAKE; static final String ALSO_MAKE_DEPENDENTS; static final String LOG_FILE; static final String ENCRYPT_MASTER_PASSWORD; static final String ENCRYPT_PASSWORD; static final String THREADS; static final String LEGACY_LOCAL_REPOSITORY; static final String BUILDER; static final String NO_TRANSFER_PROGRESS; }### Answer:
@Test public void spacedOptions() throws Exception { CommandLine cmdLine = cliManager.parse( "-X -Dx=1 -D y=2 test".split( " " ) ); assertTrue( cmdLine.hasOption( CLIManager.DEBUG ) ); assertThat( cmdLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY )[0], is( "x=1" ) ); assertThat( cmdLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY )[1], is( "y=2" ) ); }