RemotePackageSource packageSource = new RemotePackageSource();
final NugetClient nugetClient = context.mock(NugetClient.class);
final PackageFeed packageFeed = createPackageFeed("FirstFeed", createPackageEntry("id", "1.2.3"), createPackageEntry("id", "1.2.0"));
final PackageFeed emptyFeed = createPackageFeed("SecondFeed");
Expectations expectations = new Expectations();
expectations.atLeast(0).of(nugetClient).getUrl();
expectations.will(returnValue(""));
expectations.atLeast(0).of(nugetClient).getPackageCount(expectations.with(false));
expectations.will(returnValue(3));
expectations.atLeast(0).of(nugetClient).getPackages(
expectations.with((String) null),