### Question:
MiniXmlParser { public boolean hasNetworkConfig() { return sawNetworkConfig; } MiniXmlParser(File domainXml);  MiniXmlParser(File domainXml, String serverName); Map<String, String> getJavaConfig(); List<String> getJvmOptions(); Map<String, String> getProfilerConfig(); List<String> getProfilerJvmOptions(); Map<String, String> getProfilerSystemProperties(); Map<String, String> getSystemProperties(); String getDomainName(); List<HostAndPort> getAdminAddresses(); void setupConfigDir(File configDir, File installDir); boolean getSecureAdminEnabled(); String getLogFilename(); boolean isMonitoringEnabled(); boolean hasNetworkConfig(); boolean hasDefaultConfig(); String getAdminRealmName(); Map<String,String> getAdminRealmProperties();  }### Answer:
@Test public void testNoNetworkConfig() throws MiniXmlParserException { final MiniXmlParser parser = new MiniXmlParser( new File(getClass().getClassLoader().getResource("olddomain.xml").getPath()), "server"); assert (!parser.hasNetworkConfig()); }
@Test public void testNetworkConfig() throws MiniXmlParserException { final MiniXmlParser parser = new MiniXmlParser(rightOrder, "server"); assert (parser.hasNetworkConfig()); }