@Test(expected = IllegalArgumentException.class)
public void ensureExceptionIfConnectTimeoutNegative() {

  whenDefaultStringConfig();
  when(configContext.getInteger("connectTimeout", 1000)).thenReturn(-1000);
  when(configContext.getInteger(eq("requestTimeout"), Mockito.anyInt())).thenReturn(1000);
  new HttpSink().configure(configContext);
}