when(sourceDirectory.getCanonicalPath()).thenReturn(SOURCE_DIRECTORY);
when(specDirectory.getCanonicalPath()).thenReturn(SPEC_DIRECTORY);
when(baseDirectory.getCanonicalPath()).thenReturn(BASE_DIRECTORY);
when(configuration.getBasedir()).thenReturn(baseDirectory);
when(configuration.getProjectClassLoader()).thenReturn(new ProjectClassLoaderFactory().create());
when(contextA.getContextRoot()).thenReturn(SOURCE_CONTEXT_ROOT);
when(contextA.getDirectory()).thenReturn(sourceDirectory);
when(contextB.getContextRoot()).thenReturn(SPEC_CONTEXT_ROOT);