assertEquals(0, new ClassInfoComparator().compare(c1, c2));
}
@Test
public void testEqual3() {
ClassInfo ci = createMock(ClassInfo.class);
expect(ci.getName()).andReturn("java.lang.String").anyTimes();
expect(ci.isInterface()).andReturn(false).anyTimes();
replay(ci);
MethodInfo m1 = new MethodInfo(ci, "substring", "(I)Ljava/lang/String;", 0, 0, Modifier.PUBLIC);
MethodInfo m2 = new MethodInfo(ci, "substring", "(I)Ljava/lang/String;", 0, 0, Modifier.PUBLIC | Modifier.NATIVE);
int result = new MethodInfoComparator().compare(m1, m2);
assertEquals(0, result);