--- a/test-agents/class/class.c
+++ b/test-agents/class/class.c
@@ -98,6 +98,27 @@
     }
   }
   
+  jmethodID *methods;
+  jint method_count;
+  error = (*jvmti_env)->GetClassMethods(jvmti_env, clazz, &method_count, &methods);
+  if ( error != JVMTI_ERROR_NONE ) {
+    fprintf(stderr, "Class agent: ERROR: couldn't get methods (%d)\n", error);
+  }
+  else {
+    fprintf(stdout, "Class agent: got %d methods\n", method_count);
+    int i;
+    char *name, *signature, *generic;
+    for ( i = 0; i < method_count; i++ ) {
+      error = (*jvmti_env)->GetMethodName(jvmti_env, methods[i], &name, &signature, &generic);
+      if ( error != JVMTI_ERROR_NONE ) {
+        fprintf(stderr, "Class agent: ERROR: couldn't get method name for %d (%d)\n", i, error);
+      }
+      else {
+        fprintf(stdout, "Class agent: method %d = %s (%s, %s)\n", i, name, signature, generic);
+      }
+    }
+  }
+  
   /*
    * ClassLoader stuff
    */