class PeerAuthenticationExample {
  private static final String NAMESPACE = "test";

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

  public static void createResource(IstioClient client) {
    System.out.println("Creating a PeerAuthentication entry");
    client.v1beta1().peerAuthentications().inNamespace(NAMESPACE).create(new PeerAuthenticationBuilder()
        .withNewMetadata()
        .withName("details-svc")
        .endMetadata()
        .withNewSpec()
        .withSelector(new WorkloadSelectorBuilder().addToMatchLabels("app", "reviews").build())
        .withMtls(new PeerAuthenticationMutualTLSBuilder().withMode(PeerAuthenticationMutualTLSMode.DISABLE).build())
        .endSpec()
        .build());

    System.out.println("Listing workload entry instances:");
    PeerAuthenticationList list = client.v1beta1().peerAuthentications().inNamespace(NAMESPACE).list();
    list.getItems().forEach(b -> System.out.println(b.getMetadata().getName()));
    System.out.println("Done");
  }
}

    try {
      IstioClient client = ClientFactory.newClient(args);
      createResource(client);
      System.exit(0);
    } catch (KubernetesClientException ex) {
      System.err.println("Failed with " + ex.getMessage());
      System.exit(1);
    }
  
<no_super_class>