### Question:
ImageImpl extends AbstractEmptyTextComponent implements Image { @Override public String getFallback() { return UrlUtil.escape(fallbackSrc); }  @PostConstruct void init(); @Override String getSrc(); @Override String getAlt(); @Override String getFallback(); @Override boolean isEmpty(); @Override boolean isReady(); @Nonnull @Override String getExportedType();  }### Answer:
@Test public void getFallback() { final String expected = "/content/dam/fallback.png"; ctx.currentResource("/content/image"); final Image image = ctx.request().adaptTo(Image.class); assertEquals(expected, image.getFallback()); }