code: @Override
      public void run(String... args) throws Exception {
          // Upload a local file to an Asset
          final AssetInfo uploadAsset = uploadFileAndCreateAsset("video.mp4");
          System.out.println("Uploaded Asset Id: " + uploadAsset.getId());
          System.out.println("Sample completed!");
      }
docs: https://docs.microsoft.com/en-us/azure/media-services/media-services-java-how-to-use