  @Ignore("Moved test from generic element")
  @Test
  public void testGetHtmlFragment() {

    JRGenericPrintElement element = mock(JRGenericPrintElement.class);
    when(element.getParameterNames()).thenReturn(parameters.keySet());
    when(element.getParameterValue(WmsRequestParameter.WMS_URL.name()))
        .thenReturn(BASE_URL);
    when(element.getParameterValue(WmsRequestParameter.LAYERS.name()))
        .thenReturn("Hintergrund");
    when(element.getParameterValue(WmsRequestParameter.BBOX.name()))
        .thenReturn("1,1,1,1");
    when(element.getParameterValue(WmsRequestParameter.SRS_CRS.name()))
        .thenReturn("EPSG:21781");
    when(element.getWidth()).thenReturn(100);
    when(element.getHeight()).thenReturn(100);
    String htmlFragment = handler.getHtmlFragment(
        mock(JRHtmlExporterContext.class), element);
    assertThat(htmlFragment, startsWith("<img "));
    assertThat(htmlFragment, containsString(BASE_URL));
    assertThat(htmlFragment, containsString("WIDTH=100"));
    assertThat(htmlFragment, containsString("HEIGHT=100"));
  }