### Question:
HadoopDomainCompactor extends AbstractHadoopDomainBuilder { public static void main(String[] args) throws IOException, InvalidConfigurationException { CommandLineChecker.check(args, new String[]{ "domain name", "version to compact number", "mapred.task.timeout", "config path", "jobjar"}, HadoopDomainCompactor.class); String domainName = args[0]; Integer versionToCompactNumber = Integer.valueOf(args[1]); Integer mapredTaskTimeout = Integer.valueOf(args[2]); CoordinatorConfigurator configurator = new YamlCoordinatorConfigurator(args[3]); String jobJar = args[4]; DomainCompactorProperties properties = new DomainCompactorProperties(domainName, versionToCompactNumber, configurator); JobConf conf = new JobConf(); conf.setJar(jobJar); conf.set("mapred.task.timeout", mapredTaskTimeout.toString()); conf.setJobName(HadoopDomainCompactor.class.getSimpleName() + " Domain " + domainName + ", Version " + versionToCompactNumber); HadoopDomainCompactor compactor = new HadoopDomainCompactor(conf); LOG.info("Compacting Hank domain " + domainName + " version " + versionToCompactNumber + " with coordinator configuration " + configurator); compactor.buildHankDomain(properties, new IncrementalDomainVersionProperties.Base("Version " + versionToCompactNumber + " compacted")); } HadoopDomainCompactor();  HadoopDomainCompactor(JobConf conf); static void main(String[] args);  }### Answer:
@Test public void testMain() throws IOException { CoordinatorConfigurator configurator = new LocalMockCoordinatorConfigurator(); DomainBuilderProperties properties = new DomainCompactorProperties(DOMAIN_A_NAME, 0, configurator).setOutputPath(OUTPUT_PATH_A); new HadoopDomainCompactor().buildHankDomain(properties, null); assertEquals(2, LocalMockCoordinatorConfigurator.compactor.numCalls); assertEquals(LocalMockCoordinatorConfigurator.versionToCompact.getVersionNumber(), LocalMockCoordinatorConfigurator.compactor.versionToCompact.getVersionNumber()); }