DataSetDefExplorerScreen { void onEditDataSetEvent(@Observes EditDataSetEvent event) { checkNotNull("event", event); services.call(new RemoteCallback<Path>() { public void callback(Path path) { placeManager.goTo(new PathPlaceRequest(path)); } }).resolve(event.getDef()); }  @OnStartup void onStartup(PlaceRequest placeRequest); @OnClose void onClose(); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getView(); @WorkbenchMenu Menus getMenu();  }
@Test(expected = ClassCastException.class) public void testOnEditDataSetEvent() { final DataSetDef def = mock(DataSetDef.class); final EditDataSetEvent editDataSetEvent = mock(EditDataSetEvent.class); when(editDataSetEvent.getDef()).thenReturn(def); presenter.onEditDataSetEvent(editDataSetEvent); verify(placeManager, times(1)).goTo(any(PathPlaceRequest.class)); }