}
@Test
public void testWithGanymede() throws Exception {
// begin client config
final Connection conn = new Connection("localhost", port);
conn.connect(null, 5000, 0);
conn.authenticateWithPassword("sshd", "sshd");
final SCPClient scp_client = new SCPClient(conn);
final Properties props = new Properties();
props.setProperty("test", "test-passed");
File f = new File("target/scp/gan");
Utils.deleteRecursive(f);
f.mkdirs();
assertTrue(f.exists());
String name = "test.properties";
scp_client.put(toBytes(props, ""), name, "target/scp/gan");
assertTrue(new File(f, name).exists());
assertTrue(new File(f, name).delete());
name = "test2.properties";
scp_client.put(toBytes(props, ""), name, "target/scp/gan");
assertTrue(new File(f, name).exists());
assertTrue(new File(f, name).delete());
assertTrue(f.delete());
conn.close();
}