public static DisruptContext delay(long delay)
  {
    if (delay < 0)
    {
      throw new IllegalArgumentException("Delay cannot be smaller than 0");
    }
    return new DelayDisruptContext(delay);
  }
@Test
  public void testLatency()
  {
    final long latency = 4200;
    DisruptContexts.DelayDisruptContext context =
        (DisruptContexts.DelayDisruptContext) DisruptContexts.delay(latency);

    Assert.assertEquals(context.mode(), DisruptMode.DELAY);
    Assert.assertEquals(context.delay(), latency);
  }