NodeDeployTask { @VisibleForTesting void uploadNodeConfiguration(String nodeConfigFileName, String driverIpAddress) throws SSHClientException { Properties configuration = getJppfNodeConfiguration(driverIpAddress); uploadPropertiesFile("JPPF-node configuration generated by Clustermeister.", String.format("%s/config/%s", TorqueNodeDeployment.DEPLOY_BASE_NAME, nodeConfigFileName), configuration); configuration = NodeConfigurationUtils.getLog4JConfiguration(nodeLogLevel, nodeRemoteLogging, driverIpAddress, nodeRemoteLoggingPort); uploadPropertiesFile("LOG4J configuration generated by Clustermeister.", String.format("%s/config/log4j-node.properties", TorqueNodeDeployment.DEPLOY_BASE_NAME), configuration); } NodeDeployTask(TorqueNodeDeployment torqueNodeDeployment, int nodeNumber,
            TorqueNodeConfiguration nodeConfiguration, TorqueConfiguration torqueConfiguration); void execute(); String base64Encode(String toEncode);  }
@Test public void uploadNodeConfiguration() throws Exception { nodeDeployTask.uploadNodeConfiguration("config", "driverIp"); verify(sshClient).sftpUpload(any(InputStream.class), eq("jppf-node/config/config")); }