public static DisruptContext error(long latency)
  {
    if (latency < 0)
    {
      throw new IllegalArgumentException("Latency cannot be smaller than 0");
    }
    return new ErrorDisruptContext(latency);
  }
@Test(expectedExceptions = IllegalArgumentException.class)
  public void testErrorIllegal()
  {
    final long latency = -4200;
    DisruptContexts.error(latency);
  }