NugetClient client = context.mock(NugetClient.class);
ClientFactory clientFactory = context.mock(ClientFactory.class);
Expectations expectations = new Expectations();
expectations.atLeast(0).of(clientFactory).createClient();
expectations.will(returnValue(client));
expectations.atLeast(0).of(client).close();
addExpectation(expectations, client, 200, 0, createPackageFeed("feed-1", 200, 1));
addExpectation(expectations, client, 200, 200, createPackageFeed("feed-2", 200, 201));
addExpectation(expectations, client, 200, 400, createPackageFeed("feed-3", 200, 401));
addExpectation(expectations, client, 200, 600, createPackageFeed("feed-4", 200, 601));
addExpectation(expectations, client, 200, 800, createPackageFeed("feed-5", 200, 801));