}} );
placeManager = new PlaceManagerImplUnitTestWrapper( spy1, panelManager, (Event<SelectPlaceEvent>) null );
final PanelDefinition root = panelManager.getRoot();
//Goto first Place
placeManager.goTo( somewhere, root );
assertNotNull( root );
assertTrue( root.isRoot() );
assertEquals( 1,
root.getParts().size() );
assertNull( root.getChild( Position.NORTH ) );
assertNull( root.getChild( Position.SOUTH ) );
assertNull( root.getChild( Position.EAST ) );
assertNull( root.getChild( Position.WEST ) );
assertEquals( somewhere,
getPart( root.getParts(),
0 ).getPlace() );
//Goto second Place
placeManager.goTo( elsewhere , root);
assertNotNull( root );
assertTrue( root.isRoot() );
assertEquals( 2,
root.getParts().size() );
assertNull( root.getChild( Position.NORTH ) );
assertNull( root.getChild( Position.SOUTH ) );
assertNull( root.getChild( Position.EAST ) );
assertNull( root.getChild( Position.WEST ) );
final List<PlaceRequest> places = toPlaces( root.getParts() );
assertTrue( places.contains( somewhere ) );
assertTrue( places.contains( elsewhere ) );
}