public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
return "test";
}
});
assertEquals("test", object.aMethod());
}
@Test
public void interceptsReflectionMethodCalls() throws Exception {
ClassWithMethods object = (ClassWithMethods) ProxyCreator.create(ClassWithMethods.class,