import static org.junit.Assert.assertEquals;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.TestClass;

import foobar.Sub;

public class JUnitTest {
	@Test
	public void has_invalid_annotated_method()
			throws Exception {
		TestClass testClass = new TestClass(Sub.class);
		FrameworkMethod annotatedMethod = testClass.getAnnotatedMethods(
				Test.class).get(0);
		List<Throwable> errors = new ArrayList<Throwable>();
		annotatedMethod.validatePublicVoidNoArg(false, errors);
		assertEquals("Wrong number of errors.", 1, errors.size());
	}

	@Test
	public void has_one_annotated_method() throws Exception {
		TestClass testClass = new TestClass(Sub.class);
		List<FrameworkMethod> methods = testClass
				.getAnnotatedMethods(Test.class);
		assertEquals("Wrong number of methods.", 1, methods.size());
	}
}

@@ -905,11 +905,354 @@
 e());%0A%09%7D
+%0A%0A%09@Test%0A%09public void single_annotated_method_is_declared_by_super() throws Exception %7B%0A%09%09TestClass testClass = new TestClass(Sub.class);%0A%09%09List%3CFrameworkMethod%3E methods = testClass%0A%09%09%09%09.getAnnotatedMethods(Test.class);%0A%09%09assertEquals(%22Wrong declaring class.%22, %22foobar.Super%22, methods.get(0)%0A%09%09%09%09.getMethod().getDeclaringClass().getName());%0A%09%7D
 %0A%7D%0A

Add test single_annotated_method_is_declared_by_super.