public void testSimpleMetaData() throws Exception
{
SimpleBean bean = new SimpleBean();
SimpleMetaData metaData = new SimpleMetaData();
metaData.addMetaData("Simple", "MetaData", "Value");
Simple simple = (Simple) assertCreateProxy(bean, new Class[] { Simple.class }, metaData, Simple.class);
SimpleInterceptor.invoked = null;
simple.doSomething();
assertTrue(bean.invoked);
Method invoked = SimpleInterceptor.invoked;
assertNotNull(invoked);
assertEquals("doSomething", invoked.getName());
assertNotNull(SimpleInterceptor.metaData);