@Test
public void resolvedOptionsAreAppliedWhenStackIsAttachedToParentAndNotVisible() {

    FrameLayout parent = new FrameLayout(activity);
    activity.setContentView(parent);
    ViewController child = new SimpleViewController(activity, childRegistry, "child1", new Options());
    StackController stack = createStack(Collections.singletonList(child));
    stack.getView().setVisibility(View.INVISIBLE);
    parent.addView(stack.getView());
    Component component = (Component) child.getView();
    verify(presenter).applyChildOptions(any(), eq(component));
}