public List<UiView> views() {
        return (isValid || ui2Valid) ? viewList : ImmutableList.of();
    }
@Test
    public void twoViews() {
        viewList = ImmutableList.of(FOO_VIEW, BAR_VIEW);
        ext = new UiExtension.Builder(cl, viewList).build();

        assertEquals("expected 2 views", 2, ext.views().size());

        view = ext.views().get(0);
        assertEquals("wrong view category", OTHER, view.category());
        assertEquals("wrong view id", FOO_ID, view.id());
        assertEquals("wrong view label", FOO_LABEL, view.label());

        view = ext.views().get(1);
        assertEquals("wrong view category", OTHER, view.category());
        assertEquals("wrong view id", BAR_ID, view.id());
        assertEquals("wrong view label", BAR_LABEL, view.label());
    }