assertEquals("Property should have primary view "+Messages.Hudson_ViewName()+" instead of "+property.getPrimaryView().name,property.getView(Messages.Hudson_ViewName()),property.getPrimaryView());
Viewview=newListView("foo",property);
property.addView(view);
property.setPrimaryViewName(view.name);
assertEquals("Property should have primary view "+view.name+" instead of "+property.getPrimaryView().name,view,property.getPrimaryView());
assertFalse("Property should not contains view "+Messages.Hudson_ViewName(),property.getViews().contains(property.getView(Messages.Hudson_ViewName())));