public class TestSuspendedASGRule {
@Test
public void testEmptyASGSuspendedMoreThanThreshold() {
Resource resource = new AWSResource().withId("asg1").withResourceType(AWSResourceType.ASG);
resource.setAdditionalField(ASGJanitorCrawler.ASG_FIELD_MAX_SIZE, "0");
MonkeyCalendar calendar = new TestMonkeyCalendar();
DateTime now = new DateTime(calendar.now().getTimeInMillis());
int suspensionAgeThreshold = 2;
DateTime suspensionTime = now.minusDays(suspensionAgeThreshold + 1);
resource.setAdditionalField(ASGJanitorCrawler.ASG_FIELD_SUSPENSION_TIME,
ASGJanitorCrawler.SUSPENSION_TIME_FORMATTER.print(suspensionTime));
int retentionDays = 3;