@Test
public void testOnValueUnRestricted() {

    final String value = "col1";
    presenter.restrictedColumns.add("col1");
    final DataColumnDef col2 = mock(DataColumnDef.class);
    when(col2.getId()).thenReturn("col2");
    when(col2.getColumnType()).thenReturn(ColumnType.LABEL);
    presenter.listEditor.getList().add(col2);
    presenter.onValueUnRestricted(value);
    assertTrue(presenter.restrictedColumns.isEmpty());
    verify(dataColumnDefEditor, times(1)).isEditMode(true);
    verify(view, times(1)).insert(anyInt(), any(DataColumnDefEditor.View.class), anyBoolean(), anyBoolean(), anyString());
    verify(view, times(1)).remove(anyInt());
    verify(view, times(0)).init(presenter);
    verify(view, times(0)).clear();
}