private void validatePoolingProfile(Service service)
{
assertNotNull(((PooledJavaComponent) service.getComponent()).getPoolingProfile());
assertNotNull(((PooledJavaComponent) service.getComponent()).getPoolingProfile());
PoolingProfile profile = ((PooledJavaComponent) service.getComponent()).getPoolingProfile();
assertNotNull(profile);
assertEquals("exhausted:", PoolingProfile.WHEN_EXHAUSTED_FAIL, profile.getExhaustedAction());
assertEquals("initialisation:", PoolingProfile.INITIALISE_ALL, profile.getInitialisationPolicy());
assertEquals("active:", 1, profile.getMaxActive());
assertEquals("idle:", 2, profile.getMaxIdle());
assertEquals("wait:", 3, profile.getMaxWait());
}