private void testFillRemoteViewerUrl(
      String toRepalce, String baseUrl, String resourceUrl, String expected) {
    ConsoleOptions options = new ConsoleOptions();
    when(getQueryParameters().getOptions()).thenReturn(getValidOptions(GraphicsType.SPICE));
    getQuery().fillRemoteViewerUrl(options, toRepalce, baseUrl, resourceUrl);

    assertEquals(expected, options.getRemoteViewerNewerVersionUrl());
  }