SyncConfigurationManagerImpl implements SyncConfigurationManager { @Override public void persistDuracloudConfiguration(String username, String password, String host, String port, String spaceId) { this.syncToolConfig.setUsername(username); this.syncToolConfig.setPassword(password); this.syncToolConfig.setHost(host); this.syncToolConfig.setPort(Integer.parseInt(port)); this.syncToolConfig.setSpaceId(spaceId); persistSyncToolConfig(); } SyncConfigurationManagerImpl(); @Override void persistDuracloudConfiguration(String username,
                                              String password,
                                              String host,
                                              String port,
                                              String spaceId); @Override DuracloudConfiguration retrieveDuracloudConfiguration(); @Override DirectoryConfigs retrieveDirectoryConfigs(); @Override void persistDirectoryConfigs(DirectoryConfigs configs); @Override boolean isConfigurationComplete(); @Override void setConfigXmlPath(String configXml); @Override void persist(); @Override File getWorkDirectory(); @Override void purgeWorkDirectory(); @Override boolean isSyncDeletes(); @Override void setSyncDeletes(boolean flag); @Override String getUpdateSuffix(); @Override void setSyncUpdates(boolean b); @Override boolean isSyncUpdates(); @Override void setRenameUpdates(boolean b); @Override boolean isRenameUpdates(); @Override String getPrefix(); @Override void setPrefix(String prefix); @Override int getThreadCount(); @Override void setThreadCount(int threadCount); @Override void setJumpStart(boolean jumpStart); @Override boolean isJumpStart(); @Override RunMode getMode(); @Override void setMode(RunMode mode); @Override void setMaxFileSizeInBytes(long maxFileSize); @Override long getMaxFileSizeInBytes();  }
@Test public void testPersistDuracloudConfiguration() { String username = "username"; String password = "password"; String host = "host.duracloud.org"; String spaceId = "test-space-id"; String port = "8080"; this.syncConfigurationManager.persistDuracloudConfiguration(username, password, host, port, spaceId); }