### Question:
Microconfig { public static Microconfig searchConfigsIn(File rootDir) { File canonical = canonical(rootDir); if (!canonical.exists()) { throw new IllegalArgumentException("Root directory doesn't exist: " + rootDir); } return new Microconfig(canonical, new File(rootDir, "build"), new DumpedFsReader(), emptyList()); }  static Microconfig searchConfigsIn(File rootDir); Environment inEnvironment(String name); EnvironmentRepository environments(); Resolver resolver();  }### Answer:
@Test void testIncorrectRootDir() { assertThrows(IllegalArgumentException.class, () -> searchConfigsIn(new File("missingDir"))); }