@Test
public void shouldThrowExceptionOnlyAtTheEndOfValidationCall() throws Exception {

	when(result.use(LogicResult.class)).thenReturn(new MockedLogic());
	when(result.use(PageResult.class)).thenReturn(new MockedPage());
	factory.instanceFor(LogicResult.class, errors);
	factory.instanceFor(LogicResult.class, errors).forwardTo(RandomComponent.class);
	factory.instanceFor(PageResult.class, errors);
	factory.instanceFor(PageResult.class, errors).of(RandomComponent.class);
}