RemoteResourceManager { public void prepareResourceDirectory() throws SSHClientException { execute(String.format("mkdir -p %s", remoteCrcDir)); } RemoteResourceManager(SSHClient sshClient, String remoteResourcesDirPath, 
            String remoteResourcesDirName, String remoteSeparator);  RemoteResourceManager(SSHClient sshClient); void addResource(Resource resource); void removeResource(Resource resource); void uploadResources(); void deployResources(); void prepareResourceDirectory(); String getRemoteFile(Resource resource); static final String DEFAULT_REMOTE_RESOURCES_DIR_NAME; static final String DEFAULT_REMOTE_SEPARATOR; }
@Test public void testPrepareResourceDirectory() throws Exception { resourceManager.prepareResourceDirectory(); verify(sshClient).executeWithResultSilent(matches( String.format(".*mkdir.*%s%s%s.*", RESOURCE_DIR_PATH, SEPARATOR, RESOURCE_DIR_NAME))); }