}
public void testMetaDataRetrievalToMetaDataBridge() throws Exception
{
TestMetaDataRetrieval test = new TestMetaDataRetrieval();
MetaDataRetrievalToMetaDataBridge metaData = new MetaDataRetrievalToMetaDataBridge(test);
metaData.getAnnotation(TestAnnotation.class);
assertEquals("retrieveAnnotation", test.lastMethod);
metaData.getAnnotations();
assertEquals("retrieveAnnotations", test.lastMethod);
metaData.getLocalAnnotations();
assertEquals("retrieveLocalAnnotations", test.lastMethod);
metaData.getMetaData();
assertEquals("retrieveMetaData", test.lastMethod);
metaData.getLocalMetaData();
assertEquals("retrieveLocalMetaData", test.lastMethod);
metaData.getMetaData(Object.class);
assertEquals("retrieveMetaData(Class)", test.lastMethod);
metaData.getMetaData("Hello");
assertEquals("retrieveMetaData(String)", test.lastMethod);
metaData.getMetaData("Hello", Object.class);
assertEquals("retrieveMetaData(String)", test.lastMethod);
metaData.getValidTime();
assertEquals("getValidTime", test.lastMethod);
metaData.isAnnotationPresent(TestAnnotation.class);
assertEquals("retrieveAnnotation", test.lastMethod);
metaData.isMetaDataPresent(Object.class);
assertEquals("retrieveMetaData(Class)", test.lastMethod);
metaData.isMetaDataPresent("Hello");
assertEquals("retrieveMetaData(String)", test.lastMethod);
metaData.isMetaDataPresent("Hello", Object.class);
assertEquals("retrieveMetaData(String)", test.lastMethod);
}