### Question:
SetupOptions { public static File getBaseConfigDirectory() { if (null != teBaseDir) { return teBaseDir; } String basePath = System.getProperty(TE_BASE); if (null == basePath) { basePath = System.getenv(TE_BASE); } if (null == basePath) { basePath = System.getProperty("user.home") + System.getProperty("file.separator") + "teamengine"; } File baseDir = new File(basePath); if (!baseDir.isDirectory()) { baseDir.mkdirs(); } Logger.getLogger(SetupOptions.class.getName()).log(Level.CONFIG, "Using TE_BASE at " + baseDir); return baseDir; } 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 getBaseDir() { File baseDir = SetupOptions.getBaseConfigDirectory(); Assert.assertNotNull("File reference is null.", baseDir); Assert.assertTrue("Expected a directory at " + baseDir.getAbsolutePath(), baseDir.isDirectory()); }