anchor.diff:    });
   
     testWithoutContext('detects license-only SDK installation', () async {
  -    when(sdk.licensesAvailable).thenReturn(true);
  -    when(sdk.platformToolsAvailable).thenReturn(false);
  +    sdk.licensesAvailable = true;
  +    sdk.platformToolsAvailable = false;
       final ValidationResult validationResult = await AndroidValidator(
         androidStudio: null,
         androidSdk: sdk,
  
positive.code:     );
      final LicensesAccepted result = await licenseValidator.licensesAccepted;
  
      expect(result, equals(LicensesAccepted.none));
    });
  
    testWithoutContext('runLicenseManager succeeds for version >= 26', () async {
      when(sdk.sdkManagerPath).thenReturn('/foo/bar/sdkmanager');
      when(sdk.sdkManagerVersion).thenReturn('26.0.0');
  
      final AndroidLicenseValidator licenseValidator = AndroidLicenseValidator(
        androidSdk: sdk,
  
negative.code: 
      // Test with valid SDK and valid build tools
      // Will still be partial because AnroidSdk.findJavaBinary is static :(
      sdkVersion.sdkLevel = kAndroidSdkMinVersion;
      sdkVersion.buildToolsVersion = kAndroidSdkBuildToolsMinVersion;
  
      validationResult = await androidValidator.validate();
      expect(validationResult.type, ValidationType.partial); // No Java binary
  