@Before
 public void setup() throws Exception {
   initMocks(this);
   currentUser = new Username(new CaseInsensitiveString("user"));
   cruiseConfig = GoConfigMother.defaultCruiseConfig();
   repoId = "npmOrg";
   newPackageRepo =
       new PackageRepository(
           repoId,
           repoId,
           new PluginConfiguration("npm", "1"),
           new Configuration(
               new ConfigurationProperty(
                   new ConfigurationKey("REPO_URL"), new ConfigurationValue("http://bar"))));
   oldPackageRepo =
       new PackageRepository(
           repoId,
           repoId,
           new PluginConfiguration("npm", "1"),
           new Configuration(
               new ConfigurationProperty(
                   new ConfigurationKey("REPO_URL"), new ConfigurationValue("http://foo"))));
   result = new HttpLocalizedOperationResult();
   cruiseConfig.setPackageRepositories(new PackageRepositories(oldPackageRepo));
 }