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