/**
* Test that a blacklisted API doesn't show up in the directory list.
*/
public void testDirectoryBlacklist() {
ServiceDefinition toFilter = EasyMock.createMock(ServiceDefinition.class);
EasyMock.expect(toFilter.getName()).andReturn("drive").atLeastOnce();
EasyMock.expect(toFilter.getId()).andReturn("drive:v1").atLeastOnce();
ServiceDefinition toLeave = EasyMock.createMock(ServiceDefinition.class);
EasyMock.expect(toLeave.getName()).andReturn("drive").atLeastOnce();
EasyMock.expect(toLeave.getId()).andReturn("drive:v2").atLeastOnce();
final Set<ServiceDefinition> directory = ImmutableSet.of(toFilter, toLeave);
ApiServiceFactory mockDirectory = EasyMock.createMock(ApiServiceFactory.class);
final Capture<AsyncCallback<Set<ServiceDefinition>>> cbCapture =