final MethodType callSiteType = MethodType.methodType(int.class, Object.class, int.class, int.class, int.class);
final MethodType declaredType = MethodType.methodType(int.class, Test1.class, int.class, int.class, int.class);
final boolean[] converterInvoked = new boolean[1];
LinkerServices ls = new MockLinkerServices() {
@Override
public MethodHandle asType(MethodHandle handle, MethodType fromType) {
assertNotSame(handle, mh);
assertEquals(declaredType, handle.type());
assertEquals(callSiteType, fromType);