### Question:
SshEffectorTasks { public static SshPutTaskFactory put(String remoteFile) { return new SshPutEffectorTaskFactory(remoteFile); }  static SshEffectorTaskFactory<Integer> ssh(SshMachineLocation machine, String ...commands); static SshEffectorTaskFactory<Integer> ssh(String ...commands); static SshEffectorTaskFactory<Integer> ssh(List<String> commands); static SshPutTaskFactory put(String remoteFile); static SshFetchEffectorTaskFactory fetch(String remoteFile); static SshEffectorTaskFactory<Integer> codePidRunning(Integer pid); static SshEffectorTaskFactory<?> requirePidRunning(Integer pid); static SshEffectorTaskFactory<Boolean> isPidRunning(Integer pid); static SshEffectorTaskFactory<Integer> codePidFromFileRunning(final String pidFile); static SshEffectorTaskFactory<?> requirePidFromFileRunning(String pidFile); static SshEffectorTaskFactory<Boolean> isPidFromFileRunning(String pidFile); @Beta static Map<String, Object> getSshFlags(Entity entity, Location optionalLocation); static final ConfigKey<Boolean> IGNORE_ENTITY_SSH_FLAGS; }### Answer:
@Test(groups="Integration") public void testSshPut() throws IOException { String fn = Urls.mergePaths(tempDir.getPath(), "f1"); SshPutTaskWrapper t = submit(SshEffectorTasks.put(fn).contents("hello world")); t.block(); Assert.assertEquals(FileUtils.readFileToString(new File(fn)), "hello world"); Assert.assertTrue(t.isDone()); Assert.assertTrue(t.isSuccessful()); Assert.assertEquals(t.get(), null); Assert.assertEquals(t.getExitCode(), (Integer)0); }