@Test(groups = "slow")
public void test404() throws Exception
{

    errorServer.start();
    logger.info("sending");
    sender.send(eventsFile, failureCallbackHandler);
    Thread.sleep((long) 500);
    errorServer.stop();
}