.withAliases(ImmutableList.of(FooAlias2.class, FooAlias3.class));
}
}
);
HttpClient client = injector.getInstance(Key.get(AsyncHttpClient.class, FooClient.class));
assertSame(injector.getInstance(Key.get(AsyncHttpClient.class, FooAlias1.class)), client);
assertSame(injector.getInstance(Key.get(AsyncHttpClient.class, FooAlias2.class)), client);
assertSame(injector.getInstance(Key.get(AsyncHttpClient.class, FooAlias3.class)), client);
}