@Test
  public void testImageOutputConvertsNitroImages() {
    Item item = new Item();
    item.setImage("http://ichef.bbci.co.uk/images/ic/1024x576/legacy/episode/p01fxcbg.jpg");

    Element imageElem = programInfoOutputter.createImageDescriptionElem(item, "86", "48");

    assertEquals(
        "http://ichef.bbci.co.uk/images/ic/86x48/legacy/episode/p01fxcbg.jpg",
        imageElem.getAttribute("url").getValue());
    assertEquals("image/jpeg", imageElem.getAttribute("mimeValue").getValue());
    assertEquals("86", imageElem.getAttribute("width").getValue());
    assertEquals("48", imageElem.getAttribute("height").getValue());
  }
  @Test
  public void testImageOutputConvertsDynamiteImages() {
    Item item = new Item();
    item.setImage("http://ichef.bbci.co.uk/programmeimages/episode/b03c4rs8_640_360.jpg");

    Element imageElem = programInfoOutputter.createImageDescriptionElem(item, "86", "48");

    assertEquals(
        "http://ichef.bbci.co.uk/programmeimages/episode/b03c4rs8_86_48.jpg",
        imageElem.getAttribute("url").getValue());
    assertEquals("image/jpeg", imageElem.getAttribute("mimeValue").getValue());
    assertEquals("86", imageElem.getAttribute("width").getValue());
    assertEquals("48", imageElem.getAttribute("height").getValue());
  }