### Question:
JavaSourceAssert { public static void assertMethodsEqual(JavaMethod expectedMethod, JavaMethod actualMethod) throws IOException { String expectedSource = codeFormat(expectedMethod); String actualSource = codeFormat(actualMethod); Assert.assertEquals(expectedSource, actualSource); }  static JavaClass assertIsInterface(File java); static void assertBodyContains(AbstractJavaEntity entity, CharSequence expectedContents); static void assertMethodsEqual(JavaMethod expectedMethod, JavaMethod actualMethod); static void assertMethodsEqual(File expectedJava, File actualJava, String signature); static JavaMethod assertConstructorExists(File java, CharSequence signature); static JavaMethod assertMethodExists(File java, CharSequence methodSignature);  }### Answer:
@Test public void testMethodsEqualByFile() throws IOException { String signature = "public static List<Class<?>> getImplementations() throws IOException"; File actualJava = getSampleDataJavaSource("SampleObject.java"); File expectedJava = getSampleDataJavaSource("SampleOtherObject.java"); JavaSourceAssert.assertMethodsEqual(expectedJava, actualJava, signature); }