public class ModuleDefinitionPostProcessorTest extends TestCase {
public final void testPostProcessBeforeInitialization() {
SimpleRootModuleDefinition rootDefinition = new SimpleRootModuleDefinition("project1", "context.xml");
ModuleDefinitionPostProcessor postProcessor = new ModuleDefinitionPostProcessor(rootDefinition);
TestSpecAware testAware = new TestSpecAware();
postProcessor.postProcessBeforeInitialization(testAware, null);
assertSame(rootDefinition, testAware.getModuleDefinition());
assertSame(testAware, postProcessor.postProcessAfterInitialization(testAware, null));
}