/** Ensure an existing pool definition is accepted as-is. */
@Test
public void testPoolDefinedAlready() throws Exception {
DeploymentPhaseContext phaseContext = createPhaseContext();
DeploymentUnit unit = phaseContext.getDeploymentUnit();
PoolMetaData jobsPoolMetaData = new PoolMetaData( "jobs" );
jobsPoolMetaData.setShared();
unit.addToAttachmentList( PoolMetaData.ATTACHMENTS_KEY, jobsPoolMetaData );