JCloudsSlave slave = j.provision(cloud, "label");
SSHLauncher launcher = (SSHLauncher) ((JCloudsLauncher) slave.getLauncher()).launcher;
assertEquals(slave.getPublicAddress(), launcher.getHost());
assertEquals(expected.getCredentialsId(), launcher.getCredentialsId());
assertEquals(expected.getJvmOptions(), launcher.getJvmOptions());
<BUG>assertEquals(10, ((JCloudsComputer) slave.toComputer()).getRetentionTime());
slave = j.provision(cloud, "retention");
assertEquals(42, ((JCloudsComputer) slave.toComputer()).getRetentionTime());
}</BUG>
@Test

JCloudsSlave slave = j.provision(cloud, "label");
SSHLauncher launcher = (SSHLauncher) ((JCloudsLauncher) slave.getLauncher()).launcher;
assertEquals(slave.getPublicAddress(), launcher.getHost());
assertEquals(expected.getCredentialsId(), launcher.getCredentialsId());
assertEquals(expected.getJvmOptions(), launcher.getJvmOptions());
assertEquals(10, (int) slave.getSlaveOptions().getRetentionTime());
slave = j.provision(cloud, "retention");
assertEquals(42, (int) slave.getSlaveOptions().getRetentionTime());
}
@Test
