### Question:
GeocoderWidgetPresenterImpl implements GeocoderWidgetPresenter, GeocoderWidgetAlternativesPresenter,
		SelectLocationHandler, SelectAlternativeHandler, LocationNotFoundHandler { @Override public void findLocation(final String location) { showAlternativesView(false); GwtCommand command = new GwtCommand(GetLocationForStringRequest.COMMAND); GetLocationForStringRequest request = new GetLocationForStringRequest(); request.setCrs(mapPresenter.getViewPort().getCrs()); request.setLocation(location); request.setServicePattern(servicePattern); command.setCommandRequest(request); GeomajasServerExtension.getInstance().getCommandService().execute(command, new AbstractCommandCallback<GetLocationForStringResponse>() { public void execute(GetLocationForStringResponse response) { goToLocation(response, location); } }); } GeocoderWidgetPresenterImpl(MapPresenter mapPresenter, GeocoderWidgetView geocoderWidgetView,
									   GeocoderWidgetAlternativesView alternativesView); String getServicePattern(); void setServicePattern(String servicePattern); @Override void findLocation(final String location); @Override void goToLocation(final GetLocationForStringResponse response, final String location); @Override void onSelectLocation(SelectLocationEvent event); @Override void onSelectAlternative(SelectAlternativeEvent event); @Override void onLocationNotFound(LocationNotFoundEvent event); HandlerRegistration setSelectAlternativeHandler(SelectAlternativeHandler handler); HandlerRegistration setSelectLocationHandler(SelectLocationHandler handler); HandlerRegistration setLocationNotFoundHandler(LocationNotFoundHandler handler); @Override void onAlternativesViewClosed(); Bbox getAlternativesViewShowBbox(); @Override void fireGeocoderEvent(GeocoderEvent event); void clearLocation();  }### Answer:
@Test public void findLocationTest() { String crs = "crs"; stub(viewPortMock.getCrs()).toReturn(crs); String servicePattern = "servicePattern"; presenter.setServicePattern(servicePattern); presenter.findLocation(location); ArgumentCaptor<GwtCommand> commandCaptor = ArgumentCaptor.forClass(GwtCommand.class); ArgumentCaptor<CommandCallback> callbackCaptor = ArgumentCaptor.forClass(CommandCallback.class); verify(commandServiceMock).execute(commandCaptor.capture(), callbackCaptor.capture()); GwtCommand command = commandCaptor.getValue(); Assert.assertEquals(GetLocationForStringRequest.COMMAND, command.getCommandName()); Assert.assertTrue(command.getCommandRequest() instanceof GetLocationForStringRequest); GetLocationForStringRequest request = (GetLocationForStringRequest) command.getCommandRequest(); Assert.assertEquals(crs, request.getCrs()); Assert.assertEquals(location, request.getLocation()); Assert.assertEquals(servicePattern, request.getServicePattern()); }