@Test(expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = ".*actually.*")
public void testDefaultHandlerThrowsException() {

    handler.handleError(1L, new InvalidParameterException("this is an invalid exception, actually"));
}