code: function (appRoot) {
    var utFlag;
    try {
      utFlag = fs.lstatSync('platforms/android/unittests');
      if (utFlag.isFile()) {
        console.log('Preparing UT test environment');
        copyAndroidTestClasses(appRoot);
        copyAndroidTestRunner(appRoot);
        copyBuildExtrasGradle(appRoot);
        updateTestSuite(appRoot);
        updateJXCoreExtensionWithUTMethod(appRoot);
        try {
          console.log('Removing UT flag');
          fs.removeSync('platforms/android/unittests');
        } catch (err) {
          console.log(err);
          console.log('Failed to remove the UT flag file, continuing anyway');
        }
      }
    } catch (err) {
      console.log('Not a test environment, continue normally.');
    }
  }
docs: In case of build with android unit test:
  1. Copy unit test files
  2. Copy test runner classes
  3. Generate test suite
  4. Update JXcoreExtension with UT executing method
  5. Remove temporary file UTMethod, which contains definition of UT executing method
  6. Remove a file indicating UT build
  @param {Object} appRoot