class ManagedClusterList {
  private static final Logger logger = LoggerFactory.getLogger(ManagedClusterList.class.getSimpleName());

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    try (OpenClusterManagementClient ocmClient = new DefaultOpenClusterManagementClient()) {
      logger.info("Listing all ManagedClusters: ");
      ocmClient.clusters().managedClusters()
          .list().getItems().stream()
          .map(ManagedCluster::getMetadata)
          .map(ObjectMeta::getName)
          .forEach(logger::info);
    }
  
<no_super_class>