public static DisruptContext minimumDelay(long delay)
  {
    if (delay < 0)
    {
      throw new IllegalArgumentException("Delay cannot be smaller than 0");
    }
    return new MinimumDelayDisruptContext(delay);
  }
@Test
  public void testMinimumDelay()
  {
    final long latency = 4200;
    DisruptContexts.MinimumDelayDisruptContext context =
        (DisruptContexts.MinimumDelayDisruptContext) DisruptContexts.minimumDelay(latency);
    Assert.assertEquals(context.mode(), DisruptMode.MINIMUM_DELAY);
    Assert.assertEquals(context.delay(), latency);
  }