private GoogleTestTestSuiteSpec createGoogleTestTestSuite(
     final NativeComponentSpec testedComponent,
     Instantiator instantiator,
     ProjectSourceSet projectSourceSet,
     FileResolver fileResolver) {
   String suiteName = String.format("%sTest", testedComponent.getName());
   String path = testedComponent.getProjectPath();
   ComponentSpecIdentifier id = new DefaultComponentSpecIdentifier(path, suiteName);
   FunctionalSourceSet testSuiteSourceSet =
       createGoogleTestSources(instantiator, suiteName, projectSourceSet, fileResolver);
   GoogleTestTestSuiteSpec testSuiteSpec =
       BaseComponentSpec.create(
           DefaultGoogleTestTestSuiteSpec.class, id, testSuiteSourceSet, instantiator);
   testSuiteSpec.setTestedComponent(testedComponent);
   return testSuiteSpec;
 }