{
Service c = muleContext.getRegistry().lookupService(service);
assertNotNull(service, c);
assertTrue(c.getComponent() instanceof PooledJavaComponent);
PooledJavaComponent pjc = (PooledJavaComponent)c.getComponent();
PoolingProfile profile = pjc.getPoolingProfile();
assertNotNull(profile);
assertEquals("exhausted:", exhausted, profile.getExhaustedAction());
assertEquals("initialisation:", initialisation, profile.getInitialisationPolicy());
assertEquals("active:", active, profile.getMaxActive());
assertEquals("idle:", idle, profile.getMaxIdle());
assertEquals("wait:", wait, profile.getMaxWait());
}