Instance<SpringDeployerConfiguration> mockExtensionConfigurationInstance = mock(Instance.class);
when(mockExtensionConfigurationInstance.get()).thenReturn(deployerConfiguration);
TestReflectionHelper.setFieldValue(instance, "configuration", mockExtensionConfigurationInstance);
MavenDependencyBuilder mavenDependencyBuilder = new MavenDependencyBuilder();
mavenDependencyBuilder.addDependency("org.springframework:spring-context", "3.1.1.RELEASE");
mavenDependencyBuilder.addDependency("org.springframework:spring-web", "3.1.1.RELEASE");
mavenDependencyBuilder.addDependency("cglib:cglib", "2.2.2");
File[] dependencies = mavenDependencyBuilder.getDependencies();
AbstractDependencyResolver abstractDependencyResolver = mock(AbstractDependencyResolver.class);
when(abstractDependencyResolver.resolveDependencies()).thenReturn(dependencies);
Instance<AbstractDependencyResolver> mockDependencyResolverInstance = mock(Instance.class);