new SuspendedASGRule(new TestMonkeyCalendar(), 3, -1, new DummyASGInstanceValidator());
}
@Test(expectedExceptions = IllegalArgumentException.class)
public void testSuspensionTimeIncorrectFormat() {
Resource resource = new AWSResource().withId("asg1").withResourceType(AWSResourceType.ASG);
resource.setAdditionalField(ASGJanitorCrawler.ASG_FIELD_MAX_SIZE, "0");
MonkeyCalendar calendar = new TestMonkeyCalendar();
int suspensionAgeThreshold = 2;
resource.setAdditionalField(ASGJanitorCrawler.ASG_FIELD_SUSPENSION_TIME, "foo");
int retentionDays = 3;