### Question:
Configuration { public static void initJava() { initJava(".", "userdata"); }  Properties getUserProperties(); static void init(); static void init(String basePath); static void initWithOptionalProperties(String modifiedProperties); static void init(String basePath1, String workingDirectory); static void loadProperties(String sahiProperties, Properties props); static void loadProperties(InputStream source, Properties propertiesToFill); static void initJava(); static void initJava(String basePath, String userDataDirectory); static void copyProfiles(); static void copyFile(final String origDir, final String destDir, final String fileName); static void createFolders(final File file); static int getPort(); static String getLogsRoot(); static String[] getScriptRoots(); static String[] getScriptExtensions(); static String getPlayBackLogsRoot(); static String getHtdocsRoot(); static String getPlaybackLogCSSFileName(final boolean addHtdocsRoot); static String getConsolidatedLogCSSFileName(final boolean addHtdocsRoot); static String getSahiJavascriptLib(); static boolean isKeepAliveEnabled(); static int getTimeBetweenTestsInSuite(); static int getMaxInactiveTimeForScript(); static void createScriptsDirIfNeeded(); static String getHotKey(); static String appendLogsRoot(final String fileName); static boolean isDevMode(); static boolean isStrictVisibilityCheckEnabled(); static String xhrReadyStatesToWaitFor(); static String getCertsPath(); static String getRootKeyPath(); static String getRootCaName(); static String getRootCaPath(); static String getConfigPath(); static String getToolsPath(); static int getTimeBetweenSteps(); static void setTimeBetweenSteps(int speed); static int getTimeBetweenStepsOnError(); static int getMaxReAttemptsOnError(); static int getMaxCyclesForPageLoad(); static String[] getExclusionList(); static String getDomainFixInfo(); static void enableKeepAlive(); static void disableKeepAlive(); static boolean modifyActiveX(); static boolean spanVariablesAcrossSuite(); static Pattern getDownloadContentTypesRegExp(); static String[] getDownloadURLList(); static String[] getBlockableSSLDomainsList(); static String tempDownloadDir(); static void setProxyProperties(); static boolean isHttpProxyEnabled(); static boolean isHttpsProxyEnabled(); static String getHttpProxyHost(); static String getHttpProxyPort(); static String getHttpNonProxyHosts(); static String getHttpProxyAuthName(); static String getHttpProxyAuthPassword(); static String getHttpsProxyPort(); static String getHttpsProxyHost(); static String getHttpsProxyAuthName(); static String getHttpsProxyAuthPassword(); static boolean isHttpProxyAuthEnabled(); static boolean isHttpsProxyAuthEnabled(); static boolean isModifiedTrafficLoggingOn(); static boolean isUnmodifiedTrafficLoggingOn(); static void setModifiedTrafficLogging(boolean flag); static void setUnmodifiedTrafficLogging(boolean flag); static boolean downloadIfContentDispositionIsAttachment(); static String getMimeTypesMappingFile(); static String getAbsolutePath(String relPath); static String getAbsoluteUserPath(String relPath); static int sampleLength(); static String getSSLClientCertPath(); static String getSSLClientCertPassword(); static String getSSLClientKeyStoreType(); static String getControllerMode(); static void setControllerMode(String mode); static String getSSLAlgorithm(); static String getInjectTop(); static String getInjectBottom(); static String getJiraPropertyPath(); static String getUserDataDir(); static String getChangeLogFilePath(); static File getOSPropertiesFile(); static String getVersion(); static int getStabilityIndex(); static boolean getEscapeUnicode(); static boolean addJSModifierFilter(); static boolean addHTMLModifierFilter(); static boolean addCharacterFilter(); static String getCommonDomain(); static String getBrowserTypesPath(); static boolean getChromeExplicitCheckboxRadioToggle(); static String getIgnorableIdsPattern(); static boolean forceTreatAsXHTML(); static int getMaxTimeForPIDGatherFromDashboard(); static int getMaxTimeForPIDGather(); static final String PLAYBACK_LOG_ROOT; }### Answer:
@Test public void testInitJava() { Configuration.initJava(basePath + "", userDataDirectory); assertEquals(userDataDirectory + "/logs/playback", Configuration.getPlayBackLogsRoot().replace('\\', '/')); assertEquals(userDataDirectory + "/certs", Configuration.getCertsPath().replace('\\', '/')); assertEquals(userDataDirectory + "/temp/download", Configuration.tempDownloadDir().replace('\\', '/')); assertEquals("java", Configuration.getControllerMode()); }