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());
  }
 private ConsoleOptions getValidOptions(GraphicsType graphicsType) {
   ConsoleOptions options = new ConsoleOptions(graphicsType);
   options.setVmId(Guid.Empty);
   return options;
 }