@Test
public void mergeChildOptions_updatesViewWithNewOptions() {

    StackController uut = spy(new StackControllerBuilder(activity)
                    .setTopBarButtonCreator(new TopBarButtonCreatorMock())
                    .setTopBarBackgroundViewController(new TopBarBackgroundViewController(activity, new TopBarBackgroundViewCreatorMock()))
                    .setTopBarController(new TopBarController())
                    .setId("stack")
                    .setInitialOptions(new Options())
                    .setStackPresenter(new StackPresenter(activity, new TitleBarReactViewCreatorMock(), new TopBarButtonCreatorMock(), new ImageLoader(), new Options()))
                    .build());
    Options optionsToMerge = new Options();
    Component component = mock(Component.class);
    ViewController vc = mock(ViewController.class);
    uut.mergeChildOptions(optionsToMerge, vc, component);
    verify(uut, times(1)).mergeChildOptions(optionsToMerge, vc, component);
}