### Question:
ShellOptionsJC { public Properties getClientProperties() { Properties props = new Properties(); if (getClientPropertiesFile() != null) { props = ClientInfoImpl.toProperties(getClientPropertiesFile()); } for (Map.Entry<String,String> entry : commandLineProperties.entrySet()) { props.setProperty(entry.getKey(), entry.getValue()); } if (useSsl) { props.setProperty(ClientProperty.SSL_ENABLED.getKey(), "true"); } if (useSasl) { props.setProperty(ClientProperty.SASL_ENABLED.getKey(), "true"); } if (!zooKeeperInstance.isEmpty()) { String instanceName = zooKeeperInstance.get(0); String hosts = zooKeeperInstance.get(1); props.setProperty(ClientProperty.INSTANCE_ZOOKEEPERS.getKey(), hosts); props.setProperty(ClientProperty.INSTANCE_NAME.getKey(), instanceName); } if (zooKeeperHosts != null && !zooKeeperHosts.isEmpty()) { props.setProperty(ClientProperty.INSTANCE_ZOOKEEPERS.getKey(), zooKeeperHosts); } if (zooKeeperInstanceName != null && !zooKeeperInstanceName.isEmpty()) { props.setProperty(ClientProperty.INSTANCE_NAME.getKey(), zooKeeperInstanceName); } return props; }  String getUsername(); String getPassword(); boolean isTabCompletionDisabled(); boolean isDebugEnabled(); boolean isHelpEnabled(); String getExecCommand(); File getExecFile(); File getExecFileVerbose(); int getAuthTimeout(); boolean isAuthTimeoutDisabled(); List<String> getUnrecognizedOptions(); @SuppressFBWarnings(value = "PATH_TRAVERSAL_IN", justification = "user-provided paths intentional") String getClientPropertiesFile(); Properties getClientProperties();  }### Answer:
@Test public void testSasl() throws Exception { JCommander jc = new JCommander(); jc.setProgramName("accumulo shell"); jc.addObject(options); jc.parse("--sasl"); Properties properties = options.getClientProperties(); assertEquals("true", properties.getProperty(ClientProperty.SASL_ENABLED.getKey())); }
@Test public void testTraceHosts() throws Exception { final String zk = "localhost:45454"; JCommander jc = new JCommander(); jc.setProgramName("accumulo shell"); jc.addObject(options); jc.parse(new String[] {"-zh", zk}); Properties properties = options.getClientProperties(); assertEquals(zk, properties.getProperty(ClientProperty.INSTANCE_ZOOKEEPERS.getKey())); }