GAVEditor implements GAVEditorView.Presenter,
                   IsWidget { @Override public void setGAV(final GAV gav) { this.gav = gav; view.setGroupId(gav.getGroupId()); view.setArtifactId(gav.getArtifactId()); view.setVersion(gav.getVersion()); } @Inject  GAVEditor(final GAVEditorView view); @Override void setGAV(final GAV gav); @Override void setArtifactID(final String artifactID); @Override void onGroupIdChange(final String groupId); @Override void onArtifactIdChange(final String artifactId); @Override void onVersionChange(final String version); @Override void addGroupIdChangeHandler(final GroupIdChangeHandler changeHandler); @Override void addArtifactIdChangeHandler(final ArtifactIdChangeHandler changeHandler); @Override void addVersionChangeHandler(final VersionChangeHandler changeHandler); @Override Widget asWidget(); @Override void setReadOnly(); @Override void disableGroupID(final String reason); @Override void disableVersion(final String reason); @Override void disableArtifactID(final String reason); @Override void enableGroupID(); @Override void enableArtifactID(); @Override void enableVersion(); @Override void setValidGroupID(final boolean isValid); @Override void setValidArtifactID(final boolean isValid); @Override void setValidVersion(final boolean isValid);  }
@Test public void testSetGav() { editor.setGAV(gav); verify(view, times(1)).setGroupId(gav.getGroupId()); verify(view, times(1)).setArtifactId(gav.getArtifactId()); verify(view, times(1)).setVersion(gav.getVersion()); }