### Question:
Configuration { public void setXmlConf(File toolspecFile) throws GeneratorException { if (toolspecFile == null) throw new IllegalArgumentException("Project configuration file is null."); if (toolspecFile.canRead()) { logger.info("XML toolspec configuration file: " + toolspecFile.getName()); } else { throw new GeneratorException("Unable to read XML toolspec configuration file: " + toolspecFile.getAbsolutePath()); } this.xmlConf = toolspecFile.getAbsolutePath(); } Configuration(); String getProjConf(); void setProjConf(File confFile); void setXmlConf(File toolspecFile); boolean hasXmlConf(); boolean hasConfig(); String getXmlConf();  }### Answer:
@Test public void testSetXmlConfError() throws Exception { File confFile = new File(""); Configuration instance = new Configuration(); try { instance.setXmlConf(confFile); fail("Should raise exception"); } catch (GeneratorException ex) { } }