final String someNotation1 = "someNotation1";
final String someNotation2 = "someNotation2";
final String someNotation3 = "someNotation3";
final String someNotation4 = "someNotation4";
final String someModuleNotation = "junit:junit:4.4";
final ModuleDependency dependencyDummy1 = context.mock(ModuleDependency.class, "dep1");
final ModuleDependency dependencyDummy2 = context.mock(ModuleDependency.class, "dep2");
final ModuleDependency dependencyDummy3 = context.mock(ModuleDependency.class, "dep3");
final ModuleDependency dependencyMock = context.mock(ModuleDependency.class, "dep4");
context.checking(new Expectations() {{
allowing(clientModuleFactoryStub).createDependency(ClientModule.class, someModuleNotation);
will(returnValue(clientModuleMock));
allowing(testImplStringFactoryStub).createDependency(Dependency.class, someNotation1);
will(returnValue(dependencyDummy1));