rule = config.getRules().get(0);
assertNull(rule.getExpiration().getDays());
assertEquals(sdf.parse("2020-01-01+0000"), rule.getExpiration().getDate());
// Add Transition by Date
Transition transition = rule.newTransition(); // Default's to GLACIER storage class
transition.setDate(sdf.parse("2016-01-01+0000"));
s3Service.setLifecycleConfig(bucketName, config);
config = s3Service.getLifecycleConfig(bucketName);
rule = config.getRules().get(0);
assertEquals(sdf.parse("2016-01-01+0000"), rule.getTransition().getDate());
assertNull(rule.getTransition().getDays());