### Question:
DriverDefEditor extends BaseEditor<DriverDefEditorContent, Metadata> implements DriverDefEditorView.Presenter { @Override public void onCancel( ) { placeManager.closePlace( place ); } @Inject  DriverDefEditor( final DriverDefEditorView view,
                            final DriverDefMainPanel mainPanel,
                            final DriverDefEditorHelper editorHelper,
                            final PopupsUtil popupsUtil,
                            final PlaceManager placeManager,
                            final DriverDefType type,
                            final SavePopUpPresenter savePopUpPresenter,
                            final DeletePopUpPresenter deletePopUpPresenter,
                            final Caller< DriverDefEditorService > editorService,
                            final Caller< DataSourceRuntimeManagerClientService > dataSourceManagerClient ); @OnStartup void onStartup( final ObservablePath path, final PlaceRequest place ); @WorkbenchPartTitleDecoration IsWidget getTitle( ); @WorkbenchPartTitle String getTitleText( ); @WorkbenchPartView IsWidget getWidget( ); @OnMayClose boolean onMayClose( ); @Override boolean mayClose( Integer currentHash ); @Override void onSave( ); @Override void onCancel( ); @Override void onDelete( );  }### Answer:
@Test public void testCancel() { prepareLoadFileSuccessful(); editor.onCancel(); verify( placeManager, times( 1 ) ).closePlace( placeRequest ); }