@Test
public void setRoot_animates() {

    Options animatedSetRoot = new Options();
    animatedSetRoot.animations.setRoot = new AnimationOptions() {
        @Override
        public boolean hasAnimation() {
            return true;
        }
    };
    ViewController spy = spy(root);
    when(spy.resolveCurrentOptions(defaultOptions)).thenReturn(animatedSetRoot);
    CommandListenerAdapter listener = spy(new CommandListenerAdapter());
    uut.setRoot(spy, defaultOptions, listener);
    verify(animator).setRoot(eq(spy.getView()), eq(animatedSetRoot.animations.setRoot), any());
    verify(listener).onSuccess(spy.getId());
}