### Question:
MavenCli { protected MavenExecutionRequest populateRequest( CliRequest cliRequest ) { return populateRequest( cliRequest, cliRequest.request ); } MavenCli();  MavenCli( ClassWorld classWorld ); static void main( String[] args ); static int main( String[] args, ClassWorld classWorld ); static int doMain( String[] args, ClassWorld classWorld ); int doMain( String[] args, String workingDirectory, PrintStream stdout, PrintStream stderr ); int doMain( CliRequest cliRequest ); static final String LOCAL_REPO_PROPERTY; static final String MULTIMODULE_PROJECT_DIRECTORY; static final String USER_HOME; static final File USER_MAVEN_CONFIGURATION_HOME; static final File DEFAULT_USER_TOOLCHAINS_FILE; static final File DEFAULT_GLOBAL_TOOLCHAINS_FILE; static final String STYLE_COLOR_PROPERTY; }### Answer:
@Test public void verifyLocalRepositoryPath() { MavenCli cli = new MavenCli(); CliRequest request = new CliRequest( new String[] { }, null ); request.commandLine = new CommandLine.Builder().build(); MavenExecutionRequest executionRequest; executionRequest = cli.populateRequest( request ); assertThat( executionRequest.getLocalRepositoryPath(), is( nullValue() ) ); request.getSystemProperties().setProperty( MavenCli.LOCAL_REPO_PROPERTY, "." + File.separatorChar + "custom1" ); executionRequest = cli.populateRequest( request ); assertThat( executionRequest.getLocalRepositoryPath(), is( notNullValue() ) ); assertThat( executionRequest.getLocalRepositoryPath().toString(), is( "." + File.separatorChar + "custom1" ) ); request.getUserProperties().setProperty( MavenCli.LOCAL_REPO_PROPERTY, "." + File.separatorChar + "custom2" ); executionRequest = cli.populateRequest( request ); assertThat( executionRequest.getLocalRepositoryPath(), is( notNullValue() ) ); assertThat( executionRequest.getLocalRepositoryPath().toString(), is( "." + File.separatorChar + "custom2" ) ); }