@Test
public void forwardToCustomOnErrorPage() {

	try {
		when(logicResult.forwardTo(MyComponent.class)).thenReturn(instance);
		validator.add(A_MESSAGE);
		validator.onErrorForwardTo(MyComponent.class).logic();
		fail("should stop flow");
	} catch (ValidationException e) {
		verify(instance).logic();
	}
}