def test_03_09_cw_get_method(self):
     sclass = J.class_for_name('java.lang.String')
     iclass = J.get_static_field('java/lang/Integer', 'TYPE', 
                                 'Ljava/lang/Class;')
     c = J.get_class_wrapper('java.lang.String')
     m = c.getMethod('charAt', [ iclass ])
     self.assertEqual(J.to_string(J.call(m, 'getReturnType', '()Ljava/lang/Class;')), 'char')
     m = c.getMethod('concat', [ sclass])
     self.assertEqual(J.to_string(J.call(m, 'getReturnType', '()Ljava/lang/Class;')), 
                      'class java.lang.String')
 def test_03_11_cw_get_constructor(self):
     c = J.get_class_wrapper('java.lang.String')
     sclass = J.class_for_name('java.lang.String')
     constructor = c.getConstructor([sclass])
     self.assertEqual(J.call(constructor, 'getName', '()Ljava/lang/String;'),
                      'java.lang.String')
 def test_03_04_cw_get_annotation(self):
     c = J.get_class_wrapper('java.security.Identity')
     annotation = c.getAnnotation(J.class_for_name('java.lang.Deprecated'))
     self.assertTrue(annotation is not None)
 def test_01_11_class_for_name(self):
     c = J.class_for_name('java.lang.String')
     name = J.call(c, 'getCanonicalName', '()Ljava/lang/String;')
     self.assertEqual(name, 'java.lang.String')