code: public static void main(final String[] args) {
          /*-
           * use one of the pre-defined amis
           * (all amis are pre-defined in aws-mock-default.properties or aws-mock.properties)
           */
          String imageId = "ami-12345678";
          final int runCount = 10;
  
          List<Instance> startedInstances = runInstances(imageId, runCount);
  
          System.out.println("Started instances: ");
  
          for (Instance i : startedInstances) {
              System.out.println(i.getInstanceId() + " - " + i.getState().getName());
          }
      }
docs: Main method for command line use.
  
  @param args
  parameters from command line (no need here)