InfrastructureDeployer { @VisibleForTesting void deleteConfigurationFiles() { try { sshClient.executeAndSysout("rm -rf " + JPPF_NODE_DIR + "/config/jppf-node-*.properties"); } catch (SSHClientException ex) { logger.warn("Exception while deleting (old) configuration files.", ex); } } InfrastructureDeployer(SSHClient sshClient);  InfrastructureDeployer(SSHClient sshClient, RemoteResourceManager remoteResourceManager); void deployInfrastructure(Collection<File> artifactsToPreload);  }
@Test public void delteConfigFiles() throws SSHClientException { infrastructureDeployer.deleteConfigurationFiles(); verify(sshClient).executeAndSysout(eq("rm -rf jppf-node/config/jppf-node-*.properties")); }