|  | @@ -8,6 +8,8 @@ import com.reactnativenavigation.mocks.SimpleViewController;
 | 
	
		
			
			| 8 | 8 |  import org.junit.Test;
 | 
	
		
			
			| 9 | 9 |  import org.robolectric.Shadows;
 | 
	
		
			
			| 10 | 10 |  
 | 
	
		
			
			|  | 11 | +import java.util.regex.Pattern;
 | 
	
		
			
			|  | 12 | +
 | 
	
		
			
			| 11 | 13 |  import static org.assertj.core.api.Java6Assertions.assertThat;
 | 
	
		
			
			| 12 | 14 |  
 | 
	
		
			
			| 13 | 15 |  public class NavigatorTest extends BaseTest {
 | 
	
	
		
			
			|  | @@ -58,6 +60,12 @@ public class NavigatorTest extends BaseTest {
 | 
	
		
			
			| 58 | 60 |  		assertHasSingleChildViewOf(child2);
 | 
	
		
			
			| 59 | 61 |  	}
 | 
	
		
			
			| 60 | 62 |  
 | 
	
		
			
			|  | 63 | +	@Test
 | 
	
		
			
			|  | 64 | +	public void holdsUniqueId() throws Exception {
 | 
	
		
			
			|  | 65 | +		assertThat(uut.getId()).startsWith("navigator").matches(Pattern.compile("navigator\\d"));
 | 
	
		
			
			|  | 66 | +		assertThat(new Navigator(activity).getId()).isNotEqualTo(uut.getId());
 | 
	
		
			
			|  | 67 | +	}
 | 
	
		
			
			|  | 68 | +
 | 
	
		
			
			| 61 | 69 |  	private void assertHasSingleChildViewOf(ViewController vc) {
 | 
	
		
			
			| 62 | 70 |  		assertThat(uut.getView().getChildCount()).isEqualTo(1);
 | 
	
		
			
			| 63 | 71 |  		assertThat(uut.getView().getChildAt(0)).isEqualTo(vc.getView()).isNotNull();
 |