@Test
public void testViewInitialization() {

    DataSetFilter filter = new DataSetFilter();
    ColumnFilter filter1 = FilterFactory.equalsTo("column1", "Test");
    filter.addFilterColumn(filter1);
    DataSetFilterEditor filterEditor = new DataSetFilterEditor(filterView, beanManager, changedEvent);
    filterEditor.init(filter, metadata);
    assertEquals(filterView, filterEditor.view);
    verify(filterView).showNewFilterHome();
    verify(filterView).addColumn("column1");
    verify(filterView).addColumn("column2");
    verify(filterView).addColumn("column3");
    verify(filterView, times(filter.getColumnFilterList().size())).addColumnFilterEditor(any(ColumnFilterEditor.class));
}