@Test
public void shouldUseContainerForNewView() {

final MyView expectedView = new MyView();
when(container.instanceFor(MyView.class)).thenReturn(expectedView);
MyView view = result.use(MyView.class);
assertThat(view, is(expectedView));
}