public class MangledMethodInfoComparatorTest {
@Test
public void testEqual1() {
ClassInfo model = cls("java.lang.System");
MethodInfo modelMethod =
method(model, "()J", PUBLIC, "long", "currentTimeMillis", new String[0]);
ClassInfo peer = cls("gov.nasa.jpf.jvm.JPF_java_lang_System");
MethodInfo peerMethod = method(peer, "()J", PUBLIC, "long",
Types.getJNIMangledMethodName("", "currentTimeMillis", "()J"), new String[0]);
MangledMethodInfoComparator comp = new MangledMethodInfoComparator(true);
assertEquals(0, comp.compare(modelMethod, peerMethod));