@Test
public void addErrorListenerShouldThrowExceptionIfListenerIsNull() {

    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("Error listener can not be null");
    errorHandler.addErrorListener(null);
}