}
protected void doTest(String service, int exhausted, int initialisation,
int active, int idle, long wait)
{
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());