code: public static void main(final String[] args) throws URISyntaxException {
          LookAndFeelManager.get().init();
  
          final List<ServerInformation> servers = new ArrayList<>();
          servers.add(new EnvironmentBasedHadoopClusterInformation("default", "hadoop conf dir"));
          servers.add(new DirectoryBasedHadoopClusterInformation("directory", "directopry set up",
                  "C:\\Users\\claudiap\\git\\vagrant-vms\\bigdatavm\\hadoop_conf"));
          servers.add(new DirectConnectionHadoopClusterInformation("namenode", "directconnection",
                  new URI("hdfs://192.168.0.255:9000/")));
          final ServerInformationCatalog serverInformationCatalog = new ServerInformationCatalogImpl(servers);
  
          final JFrame frame = new JFrame("test");
  
          frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
          frame.setSize(DEFAULT_WIDTH, 400);
          frame.pack();
          frame.setVisible(true);
  
          final WindowContext windowContext = new DCWindowContext(null, null);
          final SelectHadoopClusterDialog selectHadoopConfigurationDialog =
                  new SelectHadoopClusterDialog(windowContext, serverInformationCatalog, null);
          selectHadoopConfigurationDialog.setVisible(true);
          final String selectedServer = selectHadoopConfigurationDialog.getSelectedConfiguration();
  
          try {
  
              final URI selectedFile =
                      HdfsUrlChooser.showDialog(frame, serverInformationCatalog, selectedServer, null, OpenType.LOAD);
              System.out.println("Normal exit, selected file: " + selectedFile);
              System.exit(0);
          } catch (final Exception e) {
              System.err.println("Abnormal exit");
              e.printStackTrace(System.err);
              System.exit(1);
          }
  
      }
docs: Test