}
@Test
public void testGetViews() {
Assert.assertTrue(registry.getViewInfos("someType", ViewType.CENTER).isEmpty(), "views should be empty prior to populating registry");
ViewInfo vi1 = new ViewInfo(TestingView.class, "abc", ViewType.OBJECT);
ViewInfo vi3 = new ViewInfo(TestingView2.class, "abc", ViewType.CENTER);
ViewInfo vi2 = new ViewInfo(TestingView3.class, "def", ViewType.CENTER);
ExtendedComponentProvider provider = createProvider(Collections.<ComponentTypeInfo>emptyList(), Arrays.asList(vi1, vi2, vi3));
registry.refreshComponents(Collections.singletonList(provider));
Collection<ViewInfo> infos = registry.getViewInfos("abc", ViewType.CENTER);
Assert.assertEquals(infos.size(),2);
Assert.assertTrue(infos.containsAll(Arrays.asList(vi2,vi3)));