@Test
public void removeErrorListenerShouldThrowExceptionIfListenerIsNull() {

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