### Question:
MetadataImpl extends AbstractEmptyTextComponent implements Metadata { @Override public boolean isReady() { return !isEmpty() || hasEmptyText(); }  @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 isReady() { ctx.currentResource("/content/metadata"); final Metadata metadata = ctx.request().adaptTo(Metadata.class); assertTrue(metadata.isReady()); }
@Test public void isReady_NotReady() { ctx.currentResource("/content/empty"); final Metadata metadata = ctx.request().adaptTo(Metadata.class); assertFalse(metadata.isReady()); }