code: @Override
    public ClientBundle getFake(Class<?> type) {
      return (ClientBundle) Proxy.newProxyInstance(
          FakeClientBundleProvider.class.getClassLoader(),
          new Class<?>[] {type},
          new InvocationHandler() {
            @Override
            public Object invoke(Object proxy, Method method, Object[] args) throws Exception {
              Class<?> returnType = method.getReturnType();
              if (CssResource.class.isAssignableFrom(returnType)) {
                return GWT.create(returnType);
              } else {
                return createFakeResource(returnType, method.getName());
              }
            }
          });
    }
docs: Returns a new instance of the given type that implements methods as
  described in the class description.
  
  @param type interface to be implemented by the returned type.