MonitoringConfig { public static MonitoringConfig fromFile(String filename) throws IOException { XStream xstream = getStreamer(); return (MonitoringConfig) xstream.fromXML(readFile(filename)); }  static MonitoringConfig fromFile(String filename); void toFile(String filename); List<Graph> getGraphs(); void setGraphs(List<Graph> graphs); List<Event> getEvents(); void setEvents(List<Event> events); AroSettings getAroSettings(); void setAroSettings(AroSettings aroSettings); static void main(String args[]);  }
@Test public void testFromFile() { URL file = this.getClass().getResource("/config.xml"); try { MonitoringConfig c = MonitoringConfig.fromFile(file.getFile()); assertEquals(true, c.getAroSettings().isEnabled()); } catch (IOException e) { fail("file not found: " + file.getFile()); } }