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

  when(configContext.getString("endpoint", "")).thenReturn("");
  new HttpSink().configure(configContext);
}