"template", "label", SlaveOptions.builder().retentionTime(retentionTime).build()
);
JCloudsCloud cloud = j.configureSlaveLaunching(j.dummyCloud(template));
JCloudsSlave slave = j.provision(cloud, "label");
JCloudsComputer computer = (JCloudsComputer) slave.toComputer();
<BUG>assertEquals(1, computer.getRetentionTime());
JCloudsRetentionStrategy strategy = (JCloudsRetentionStrategy) slave.getRetentionStrategy();</BUG>
strategy.check(computer);
assertFalse("Slave should not be scheduled for deletion right away", computer.isPendingDelete());
Thread.sleep(1000 * 61); // Wait for the slave to be idle long enough

"template", "label", SlaveOptions.builder().retentionTime(retentionTime).build()
);
JCloudsCloud cloud = j.configureSlaveLaunching(j.dummyCloud(template));
JCloudsSlave slave = j.provision(cloud, "label");
JCloudsComputer computer = (JCloudsComputer) slave.toComputer();
assertEquals(1, (int) slave.getSlaveOptions().getRetentionTime());
JCloudsRetentionStrategy strategy = (JCloudsRetentionStrategy) slave.getRetentionStrategy();
strategy.check(computer);
assertFalse("Slave should not be scheduled for deletion right away", computer.isPendingDelete());
Thread.sleep(1000 * 61); // Wait for the slave to be idle long enough
