@Test
public void setStackRoot() {

    disablePushAnimation(child1, child2, child3);
    StackController stack = newStack();
    uut.setRoot(stack, new CommandListenerAdapter());
    stack.push(child1, new CommandListenerAdapter());
    stack.push(child2, new CommandListenerAdapter());
    stack.setRoot(child3, new CommandListenerAdapter());
    assertThat(stack.getChildControllers()).containsOnly(child3);
}