### Question:
ConfigurationSubCommand extends BaseInsightSubCommand implements Callable<Void> { protected void printConfig(Class clazz, OzoneConfiguration conf) { ConfigGroup configGroup = (ConfigGroup) clazz.getAnnotation(ConfigGroup.class); if (configGroup == null) { return; } printConfig(configGroup, clazz, conf); }  @Override Void call();  }### Answer:
@Test public void testPrintConfig() { OzoneConfiguration conf = new OzoneConfiguration(); conf.set("ozone.scm.client.address", "omclient"); ConfigurationSubCommand subCommand = new ConfigurationSubCommand(); subCommand.printConfig(CustomConfig.class, conf); final String output = out.toString(); Assert.assertTrue(output.contains(">>> ozone.scm.client.address")); Assert.assertTrue(output.contains("default: localhost")); Assert.assertTrue(output.contains("current: omclient")); Assert.assertTrue(output.contains(">>> ozone.scm.client.secure")); Assert.assertTrue(output.contains("default: true")); Assert.assertTrue(output.contains("current: true")); }