### Question:
CliParser { public Namespace getNamespace() { return options; } CliParser(final String... args); List<Target> getTargets(); String getUsername(); boolean getJson(); Namespace getNamespace(); CliCommand getCommand(); LoggingConfig getLoggingConfig();  }### Answer:
@Test public void testInsecureHttpsDisabledByDefault() throws Exception { final CliParser parser = new CliParser(toArray(singleEndpointArgs)); assertFalse("GlobalArg 'insecure' should default to false", parser.getNamespace().getBoolean("insecure")); }
@Test public void testInsecureHttpsEnable() throws Exception { final CliParser parser = new CliParser(toArray(singleEndpointArgs, "--insecure")); assertTrue(parser.getNamespace().getBoolean("insecure")); }
@Test public void testGoogleCredentialsEnabledByDefault() throws Exception { final CliParser parser = new CliParser(toArray(singleEndpointArgs)); assertTrue(parser.getNamespace().getBoolean("google_credentials")); }
@Test public void testDisableGoogleCredentials() throws Exception { final CliParser parser = new CliParser( toArray(singleEndpointArgs, "--google-credentials=false")); assertFalse(parser.getNamespace().getBoolean("google_credentials")); }