### Question:
MetadataImpl extends AbstractEmptyTextComponent implements Metadata { @Override public AssetModel getAsset() { return asset; }  @PostConstruct void init(); @Override DataType getType(); @Override String getLocale(); @Override String getFormat(); @Override ValueMap getProperties(); @Override AssetModel getAsset(); @Override String getPropertyName(); @Override boolean isEmpty(); @Override boolean isReady(); @Nonnull @Override String getExportedType();  }### Answer:
@Test public void getAsset() { final String expected = "/content/dam/test.png"; ctx.currentResource("/content/metadata"); final Metadata metadata = ctx.request().adaptTo(Metadata.class); assertEquals(expected, metadata.getAsset().getPath()); }