### Question:
ContainerConfigPresenter { protected void onArtifactSelected(final String path) { view.clearFormError(); m2RepoService.call(getLoadGAVSuccessCallback(), getLoadGAVErrorCallback()).loadGAVFromJar(path); } @Inject  ContainerConfigPresenter(final View view,
                                    final ArtifactSelectorPresenter artifactSelector,
                                    final TranslationService translationService,
                                    final PopupHelper popupHelper,
                                    final Caller<M2RepoService> m2RepoService,
                                    final ProvisioningClientValidationService validationService); @PostConstruct void init(); IsElement getView(); void clear(); void setup(final List<String> alreadyInUseNames); boolean validateForSubmit(); ContainerConfig getContainerConfig();  }### Answer:
@Test public void testOnArtifactSelectedFailed() { when(translationService.format(ContainerConfigPresenter_LoadGAVErrorMessage, SERVICE_CALLER_EXCEPTION_MESSAGE)).thenReturn(ERROR_MESSAGE); prepareServiceCallerError(m2RepoService, m2RepoServiceCaller); presenter.onArtifactSelected(JAR_PATH); verify(view, times(1)).clearFormError(); verify(popupHelper, times(1)).showErrorPopup(ERROR_MESSAGE); verify(view, times(1)).setGroupId(EMPTY_STRING); verify(view, times(1)).setArtifactId(EMPTY_STRING); verify(view, times(1)).setVersion(EMPTY_STRING); }