class ListExamples {

  private static final Logger logger = LoggerFactory.getLogger(ListExamples.class);

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

}

    final ConfigBuilder configBuilder = new ConfigBuilder();
    if (args.length > 0) {
      configBuilder.withMasterUrl(args[0]);
    }
    try (KubernetesClient client = new KubernetesClientBuilder().withConfig(configBuilder.build()).build()) {
      final String namespace = Optional.ofNullable(client.getNamespace()).orElse("default");

      System.out.println(
          client.namespaces().list());

      System.out.println(
          client.namespaces().withLabel("this", "works").list());

      System.out.println(
          client.pods().withLabel("this", "works").list());

      System.out.println(
          client.pods().inNamespace("test").withLabel("this", "works").list());

      System.out.println(
          client.pods().inNamespace("test").withName("testing").get());

      /*
       * The continue option should be set when retrieving more results from the server.
       * Since this value is server defined, clients may only use the continue value from
       * a previous query result with identical query parameters (except for the value of
       * continue) and the server may reject a continue value it does not recognize.
       */
      PodList podList = client.pods().inNamespace(namespace).list(new ListOptionsBuilder().withLimit(5L).build());
      podList.getItems().forEach(obj -> System.out.println(obj.getMetadata().getName()));

      podList = client.pods().inNamespace(namespace)
          .list(new ListOptionsBuilder().withLimit(5L).withContinue(podList.getMetadata().getContinue()).build());
      podList.getItems().forEach(obj -> System.out.println(obj.getMetadata().getName()));

      Integer services = client.services().inNamespace(namespace)
          .list(new ListOptionsBuilder().withLimit(1L).build()).getItems().size();

      client.services().inNamespace(namespace).list(new ListOptionsBuilder().withLimit(1L).withContinue(null).build());
      System.out.println(services);
    } catch (KubernetesClientException e) {
      logger.error(e.getMessage(), e);
    }
  
<no_super_class>