InvocationHandler ih = new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if (method.getReturnType() == AbstractImagePrototype.class) {
String url = getImageUrl(method);
return new ClippedImagePrototype(url, 0, 0, 0, 0);
}
throw new GwtTestResourcesException("Not managed return type for image bundle : "
+ method.getReturnType().getSimpleName());
}