@Test
public void testEdit() {

    List<DataColumnDef> columnDefs = mock( List.class );
    presenter.edit( dataSetDef, columnDefs );
    assertEquals( editor, presenter.getEditor() );
    verify( driver, times( 1 ) ).initialize( editor );
    verify( editor, times( 1 ) ).setAcceptableValues( columnDefs );
    verify( driver, times( 1 ) ).edit( dataSetDef );
    verify( view, times( 2 ) ).clearView();
    verify( view, times( 1 ) ).add( any( IsWidget.class ) );
    verify( view, times( 0 ) ).init( presenter );
    verify( view, times( 0 ) ).addButton( anyString(), anyString(), anyBoolean(), any( Command.class ) );
    verify( view, times( 0 ) ).clearButtons();
}