@Test
public void testOnValueRestricted() {

    final String value = "col1";
    presenter.restrictedColumns.clear();
    presenter.onValueRestricted(value);
    assertEquals(1, presenter.restrictedColumns.size());
    assertEquals("col1", presenter.restrictedColumns.get(0));
    verify(dataColumnDefEditor, times(1)).isEditMode(false);
    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();
}