### Question:
NodeSchemaManager { public void init(ConfigurationSource conf) { String schemaFile = conf.get( ScmConfigKeys.OZONE_SCM_NETWORK_TOPOLOGY_SCHEMA_FILE, ScmConfigKeys.OZONE_SCM_NETWORK_TOPOLOGY_SCHEMA_FILE_DEFAULT); NodeSchemaLoadResult result; try { result = NodeSchemaLoader.getInstance().loadSchemaFromFile(schemaFile); allSchema = result.getSchemaList(); enforcePrefix = result.isEnforePrefix(); maxLevel = allSchema.size(); } catch (Throwable e) { String msg = "Failed to load schema file:" + schemaFile + ", error: " + e.getMessage(); LOG.error(msg, e); throw new RuntimeException(msg, e); } } private  NodeSchemaManager(); static NodeSchemaManager getInstance(); void init(ConfigurationSource conf); @VisibleForTesting void init(NodeSchema[] schemas, boolean enforce); int getMaxLevel(); int getCost(int level); String complete(String path);  }### Answer:
@Test public void testInitFailure() { String filePath = classLoader.getResource( "./networkTopologyTestFiles/good.xml").getPath() + ".backup"; conf.set(ScmConfigKeys.OZONE_SCM_NETWORK_TOPOLOGY_SCHEMA_FILE, filePath); try { manager.init(conf); fail("should fail"); } catch (Throwable e) { assertTrue(e.getMessage().contains("Failed to load schema file:" + filePath)); } }