ReleaseManager releaseManager = (ReleaseManager) lookup( ReleaseManager.ROLE, "test" );
ReleaseDescriptor releaseDescriptor = configStore.getReleaseConfiguration();
releaseDescriptor.setCompletedPhase( "step1" );
releaseManager.prepare( new ReleaseDescriptor(), new DefaultReleaseEnvironment(), null, false, false );
@SuppressWarnings("unchecked")
Map<String,ReleasePhaseStub> phases = container.lookupMap( ReleasePhase.ROLE );
ReleasePhaseStub phase = (ReleasePhaseStub) phases.get( "step1" );