### Question:
Validator { public static void validateDelay(long delayInMilliSecs) { if (delayInMilliSecs < 0) { throw new IllegalArgumentException("delayInMilliSecs must be positive"); } } private  Validator(); static void validateMessage(Object message); static void validateMessageId(String messageId); static void validateRetryCount(int retryCount); static void validateDelay(long delayInMilliSecs); static void validateQueue(String queue); static void validatePriority(String priority);  }### Answer:
@Test public void validateDelay() { assertThrows(IllegalArgumentException.class, () -> Validator.validateDelay(-100L)); }