### Question:
VideoImpl extends AbstractEmptyTextComponent implements Video { @Override public boolean isVideoAsset() { if (null != asset && null != asset.getResource()) { return DamUtil.isVideo(asset.getResource().adaptTo(Asset.class)); } return false; }  @PostConstruct void init(); @Override boolean isEmpty(); @Override boolean isReady(); @Override String getSrc(); @Override boolean isVideoAsset(); @Nonnull @Override String getExportedType();  }### Answer:
@Test public void isVideoAsset() { ctx.currentResource("/content/video"); final Video video = ctx.request().adaptTo(Video.class); assertTrue(video.isVideoAsset()); }
@Test public void isVideoAsset_VideoAsset() { ctx.currentResource("/content/video"); ctx.requestPathInfo().setSuffix("/content/dam/test.png"); final Video video = ctx.request().adaptTo(Video.class); assertFalse(video.isVideoAsset()); }