### Question:
MicroconfigMain { public static void main(String... args) { val params = MicroconfigParams.parse(args); if (params.version()) { printVersion(); return; } File rootDir = params.rootDir(); File destinationDir = params.destinationDir(); String env = params.env(); List<String> groups = params.groups(); List<String> services = params.services(); boolean stacktrace = params.stacktrace(); boolean jsonOutput = params.jsonOutput(); new MicroconfigMain(rootDir, destinationDir, env, groups, services, stacktrace, jsonOutput).build(); }  static void main(String... args);  }### Answer:
@Test void main() { String root = getClass().getClassLoader().getResource("repo").getFile(); MicroconfigMain.main("-e", "test", "-r", escape(root), "-d", escape(destinationDir.getAbsolutePath())); checkComponentBuildResult("component"); checkComponentBuildResult("component2"); }