@Test(expected=ValidationException.class)
public void onStatusResultShouldThrowExceptionsOnMovedPermanentlyToLogic() throws Exception {

	Status status = mock(Status.class);
	when(result.use(Status.class)).thenReturn(status);
	when(status.movedPermanentlyTo(RandomComponent.class)).thenReturn(new RandomComponent());
	try {
		factory.instanceFor(Status.class, errors).movedPermanentlyTo(RandomComponent.class);
	} catch (ValidationException e) {
		Assert.fail("Should not throw exception yet");
	}
	factory.instanceFor(Status.class, errors).movedPermanentlyTo(RandomComponent.class).random();
}