int active, int idle, long wait)
{
Object o = muleContext.getRegistry().lookupObject(serviceFlow);
assertNotNull(serviceFlow, o);
PooledJavaComponent pjc;
if(variant.equals(ConfigVariant.SERVICE))
{
assertTrue(((Service)o).getComponent() instanceof PooledJavaComponent);
pjc = (PooledJavaComponent) ((Service)o).getComponent();
}
else
{
assertTrue(((Flow)o).getMessageProcessors().get(0) instanceof PooledJavaComponent);
pjc = (PooledJavaComponent) ((Flow)o).getMessageProcessors().get(0);
}
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());