AnnotatedBindingBuilder<LangFactory> bindLangFactory = createMock(AnnotatedBindingBuilder.class);
AnnotatedBindingBuilder<ILinkingDiagnosticMessageProvider.Extended> bindLinkingDMP = createMock(AnnotatedBindingBuilder.class);
AnnotatedBindingBuilder<ILaunchManager> bindLaunchManager = createMock(AnnotatedBindingBuilder.class);
final ILaunchManager launchManager = createMock(ILaunchManager.class);
expect(binder.bind(LangFactory.class)).andReturn(bindLangFactory);
expect(binder.bind(ILinkingDiagnosticMessageProvider.Extended.class)).andReturn(bindLinkingDMP);
expect(binder.bind(ILaunchManager.class)).andReturn(bindLaunchManager);
bindLangFactory.toInstance(LangFactory.eINSTANCE);