ConfigurationParser { public static HoneycombConfiguration parseConfiguration(String configPath, String schemaPath) { Verify.isNotNullOrEmpty(configPath); Verify.isNotNullOrEmpty(schemaPath); final File configFile = new File(configPath); final File schemaFile = new File(schemaPath); checkFileAvailable(configFile); checkFileAvailable(schemaFile); final InputSupplier<? extends InputStream> configSupplier = Files.newInputStreamSupplier(configFile); final InputSupplier<? extends InputStream> schemaSupplier = Files.newInputStreamSupplier(schemaFile); checkValidConfig(configSupplier, schemaSupplier); Document doc = parseDocument(configSupplier); Map<String, Map<String, String>> adapters = parseAdapters(doc); String defaultAdapter = parseDefaultAdapter(doc); return new HoneycombConfiguration(adapters, defaultAdapter); } private  ConfigurationParser(); static HoneycombConfiguration parseConfiguration(String configPath,
                                                            String schemaPath);  }
@Test(expected = NullPointerException.class) public void testParseNullConfigPath() { ConfigurationParser.parseConfiguration(null, "/foo"); }
@Test(expected = NullPointerException.class) public void testParseNullSchemaPath() { ConfigurationParser.parseConfiguration("/foo", null); }