### Question:
HibernateToolTask { public MetadataTask createMetadata() { this.metadataTask = new MetadataTask(); return this.metadataTask; }  MetadataTask createMetadata(); ExportCfgTask createExportCfg(); ExportDdlTask createExportDdl(); void execute();  }### Answer:
@Test public void testCreateMetadata() { HibernateToolTask htt = new HibernateToolTask(); assertNull(htt.metadataTask); MetadataTask mdt = htt.createMetadata(); assertSame(mdt, htt.metadataTask); }