NewScoreCardXLSHandler extends DefaultNewResourceHandler { protected String getServletUrl() { return URLHelper.getServletUrl(getClientId()); } NewScoreCardXLSHandler(); @Inject  NewScoreCardXLSHandler(final PlaceManager placeManager,
                                  final ScoreCardXLSResourceType resourceType,
                                  final BusyIndicatorView busyIndicatorView,
                                  final ClientMessageBus clientMessageBus,
                                  final AuthorizationManager authorizationManager,
                                  final SessionInfo sessionInfo); @Override List<Pair<String, ? extends IsWidget>> getExtensions(); @Override String getDescription(); @Override IsWidget getIcon(); @Override ResourceTypeDefinition getResourceType(); @Override boolean canCreate(); @Override void create(final Package pkg,
                       final String baseFileName,
                       final NewResourcePresenter presenter);  }
@Test public void testGetServletUrl() { assertEquals("scorecardxls/file?clientId=123", handler.getServletUrl()); }