POMEditorPanel implements POMEditorPanelView.Presenter,
                   IsWidget { @Override public void onOpenProjectContext() { SyncBeanDef<PlaceManager> placeManagerSyncBeanDef = iocManager.lookupBean(PlaceManager.class); placeManagerSyncBeanDef.getInstance().goTo("repositoryStructureScreen"); } POMEditorPanel(); @Inject  POMEditorPanel(final POMEditorPanelView view,
                          final SyncBeanManager iocManager,
                          final GAVPreferences gavPreferences,
                          final ProjectScopedResolutionStrategySupplier projectScopedResolutionStrategySupplier); void setPOM(POM model,
                       boolean isReadOnly); void setArtifactID(final String artifactID); @Override void addNameChangeHandler(final NameChangeHandler changeHandler); @Override void addGroupIdChangeHandler(final GroupIdChangeHandler changeHandler); @Override void addArtifactIdChangeHandler(final ArtifactIdChangeHandler changeHandler); @Override void addVersionChangeHandler(final VersionChangeHandler changeHandler); @Override void onNameChange(final String name); @Override void onDescriptionChange(final String description); @Override void onOpenProjectContext(); @Override Widget asWidget(); @Override void disableGroupID(final String reason); @Override void disableVersion(final String reason); @Override POM getPom(); @Override void setValidName(final boolean isValid); @Override void setValidGroupID(final boolean isValid); @Override void setValidArtifactID(final boolean isValid); @Override void setValidVersion(final boolean isValid);  }
@Test public void testOpenProjectContext() throws Exception { SyncBeanDef iocBeanDef = mock(SyncBeanDef.class); PlaceManager placeManager = mock(PlaceManager.class); when(iocBeanDef.getInstance()).thenReturn(placeManager); when(iocManager.lookupBean(eq(PlaceManager.class))).thenReturn(iocBeanDef); presenter.onOpenProjectContext(); verify(placeManager).goTo("repositoryStructureScreen"); }