public Injector createInjector() {
return Guice.createInjector(new fr.obeo.releng.targetplatform.TargetPlatformRuntimeModule() {
public Provider<org.eclipse.equinox.p2.core.IProvisioningAgent> provideIProvisioningAgent() {
return new Provider<IProvisioningAgent>() {
public IProvisioningAgent get() {
return new MockProvisioningAgent(new IQueryResultProvider<IInstallableUnit>() {
public List<IInstallableUnit> listIUs(URI location) {
if ("location1".equals(location.toString())) {
return ImmutableList.<IInstallableUnit>of(
MockIU.createFeature("org.iu1", Version.createOSGi(1,2,0))
);