expect(delegate.allocateClientId("fred")).andReturn("barney");
replay();
EnvironmentalShadowBuilder builder = new EnvironmentalShadowBuilderImpl(getService("PlasticProxyFactory",
PlasticProxyFactory.class), env);
JavaScriptSupport proxy = builder.build(JavaScriptSupport.class);
assertEquals(proxy.allocateClientId("fred"), "barney");
verify();
}