@Test
  public void testInitDefaultFilters() {
    when(filterPagedTable.getMultiGridPreferencesStore()).thenReturn(multiGridPreferencesStore);

    view.initDefaultFilters(
        new GridGlobalPreferences("testGrid", new ArrayList<String>(), new ArrayList<String>()),
        null);

    verify(filterPagedTable, times(3))
        .addTab((ExtendedPagedTable) any(), anyString(), (Command) any());
    verify(filterPagedTable, times(3)).saveNewTabSettings(anyString(), (HashMap) any());
  }
  @Test
  public void testDataStoreNameIsSet() {
    when(gridPreferencesStore.getColumnPreferences())
        .thenReturn(new ArrayList<GridColumnPreference>());
    when(currentListGrid.getGridPreferencesStore()).thenReturn(gridPreferencesStore);
    doAnswer(
            new Answer() {
              @Override
              public Void answer(InvocationOnMock invocationOnMock) throws Throwable {
                final List<ColumnMeta> columns =
                    (List<ColumnMeta>) invocationOnMock.getArguments()[0];
                for (ColumnMeta columnMeta : columns) {
                  assertNotNull(columnMeta.getColumn().getDataStoreName());
                }
                return null;
              }
            })
        .when(currentListGrid)
        .addColumns(anyList());

    view.initColumns(currentListGrid);

    verify(currentListGrid).addColumns(anyList());
  }
  @Before
  public void setupMocks() {

    view = new ProcessInstancesWithVariableListViewExtension();
    view.setUpMocks(currentListGrid, filterPagedTable, dataSetEditorManager, presenter);
  }