GenerateHubTDETemplateCommand extends GenerateModelArtifactsCommand { protected static Optional<String> extractEntityNameFromFilename(String filename) { return EntityServicesManager.extractEntityNameFromURI(filename); } GenerateHubTDETemplateCommand(HubConfig hubConfig); @Override void execute(CommandContext context); String getEntityNames(); void setEntityNames(String entityNames);  }
@Test public void testExtractEntityNameFromFilename() { assertEquals("Could not extract entity ABC", "ABC",GenerateHubTDETemplateCommand.extractEntityNameFromFilename("ABC.entity.json").get()); }