|  | @@ -43,6 +43,7 @@ public class StackControllerTest extends BaseTest {
 | 
	
		
			
			| 43 | 43 |      private ViewController child1;
 | 
	
		
			
			| 44 | 44 |      private ViewController child2;
 | 
	
		
			
			| 45 | 45 |      private ViewController child3;
 | 
	
		
			
			|  | 46 | +    private ViewController child4;
 | 
	
		
			
			| 46 | 47 |      private NavigationAnimator animator;
 | 
	
		
			
			| 47 | 48 |      private TopBarController topBarController;
 | 
	
		
			
			| 48 | 49 |  
 | 
	
	
		
			
			|  | @@ -54,6 +55,7 @@ public class StackControllerTest extends BaseTest {
 | 
	
		
			
			| 54 | 55 |          child1 = spy(new SimpleViewController(activity, "child1", new Options()));
 | 
	
		
			
			| 55 | 56 |          child2 = spy(new SimpleViewController(activity, "child2", new Options()));
 | 
	
		
			
			| 56 | 57 |          child3 = spy(new SimpleViewController(activity, "child3", new Options()));
 | 
	
		
			
			|  | 58 | +        child4 = spy(new SimpleViewController(activity, "child4", new Options()));
 | 
	
		
			
			| 57 | 59 |      }
 | 
	
		
			
			| 58 | 60 |  
 | 
	
		
			
			| 59 | 61 |      @Test
 | 
	
	
		
			
			|  | @@ -315,6 +317,26 @@ public class StackControllerTest extends BaseTest {
 | 
	
		
			
			| 315 | 317 |          assertThat(uut.size()).isEqualTo(2);
 | 
	
		
			
			| 316 | 318 |      }
 | 
	
		
			
			| 317 | 319 |  
 | 
	
		
			
			|  | 320 | +    @Test
 | 
	
		
			
			|  | 321 | +    public void popTo_animatesTopController() {
 | 
	
		
			
			|  | 322 | +        uut.push(child1, new CommandListenerAdapter());
 | 
	
		
			
			|  | 323 | +        uut.push(child2, new CommandListenerAdapter());
 | 
	
		
			
			|  | 324 | +        uut.push(child3, new CommandListenerAdapter());
 | 
	
		
			
			|  | 325 | +        uut.push(child4, new CommandListenerAdapter() {
 | 
	
		
			
			|  | 326 | +            @Override
 | 
	
		
			
			|  | 327 | +            public void onSuccess(String childId) {
 | 
	
		
			
			|  | 328 | +                uut.popTo(child2, new CommandListenerAdapter() {
 | 
	
		
			
			|  | 329 | +                    @Override
 | 
	
		
			
			|  | 330 | +                    public void onSuccess(String childId) {
 | 
	
		
			
			|  | 331 | +                        verify(animator, times(0)).animatePop(eq(child1.getView()), any());
 | 
	
		
			
			|  | 332 | +                        verify(animator, times(0)).animatePop(eq(child2.getView()), any());
 | 
	
		
			
			|  | 333 | +                        verify(animator, times(1)).animatePop(eq(child4.getView()), any());
 | 
	
		
			
			|  | 334 | +                    }
 | 
	
		
			
			|  | 335 | +                });
 | 
	
		
			
			|  | 336 | +            }
 | 
	
		
			
			|  | 337 | +        });
 | 
	
		
			
			|  | 338 | +    }
 | 
	
		
			
			|  | 339 | +
 | 
	
		
			
			| 318 | 340 |      @Test
 | 
	
		
			
			| 319 | 341 |      public void popToRoot_PopsEverythingAboveFirstController() {
 | 
	
		
			
			| 320 | 342 |          child1.options.animated = new Bool(false);
 |