*/
public class NonInterfaceNotAdvisedTestCase extends AbstractProxyTest
{
public void testNotAdvised() throws Exception
{
SimpleBean bean = new SimpleBean();
// Test non interface method isn't advised
SimpleBean proxy = (SimpleBean) assertCreateProxy(bean, SimpleBean.class);
SimpleInterceptor.invoked = null;
proxy.doSomethingElse();
assertNull(SimpleInterceptor.invoked);
// But the interface should be advised
proxy.doSomething();
assertTrue(bean.invoked);
Method invoked = SimpleInterceptor.invoked;
assertNotNull(invoked);
assertEquals("doSomething", invoked.getName());
}