### Question:
ImageImpl extends AbstractEmptyTextComponent implements Image { @Override public String getAlt() { return asset.getTitle(); }  @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 getAlt() { final String expected = "Test Asset"; ctx.currentResource("/content/image"); final Image image = ctx.request().adaptTo(Image.class); assertEquals(expected, image.getAlt()); }