private ClusterStackVersionResourceProvider createProvider(AmbariManagementController amc) {
     ResourceProviderFactory factory = injector.getInstance(ResourceProviderFactory.class);
     AbstractControllerResourceProvider.init(factory);

     Resource.Type type = Type.ClusterStackVersion;
     return (ClusterStackVersionResourceProvider) AbstractControllerResourceProvider.getResourceProvider(type,
         amc);
   }
Tests that forcing the host versions into
{@link RepositoryVersionState#INSTALLED}

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProviderTest.java