### Question:
SetupOptions { public File getWorkDir() { if (null == this.workDir) { File dir = new File(teBaseDir, "work"); if (!dir.exists() && !dir.mkdir()) { throw new RuntimeException("Failed to create directory at " + dir.getAbsolutePath()); } this.workDir = dir; } return workDir; } SetupOptions(); static File getBaseConfigDirectory(); static boolean recordingInfo(String testName); String getSourcesName(); void setSourcesName(String sourcesName); File getWorkDir(); List<File> getSources(); void addSource(File source); Element getParamsElement(); boolean isValidate(); void setValidate(boolean validate); boolean isPreload(); void setPreload(boolean preload); static final String TE_BASE; }### Answer:
@Test public void getWorkDir() { SetupOptions iut = new SetupOptions(); File workDir = iut.getWorkDir(); Assert.assertTrue("Expected a directory at " + workDir.getAbsolutePath(), workDir.isDirectory()); }