InvocationHandler handler = new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object... args) {
return method.getDefaultValue();
}
};
Test test = (Test)
Proxy.newProxyInstance(loader, new Class[] { Test.class }, handler);
expect("Hello, world!".equals(test.value()));
}