@Test
public void check_varags() throws Throwable {
CallSite concat = MethodInvocationSupport.bootstrap(lookup(), "concat", methodType(Object.class, Object.class, Object.class, Object.class, Object.class, Object.class), 0);
VarargsChecking receiver = varargsChecking();
Object result = concat.dynamicInvoker().invokeWithArguments(receiver, "-", "a", "b", "c");
assertThat(result, notNullValue());
assertThat(result, instanceOf(String.class));
assertThat((String) result, is("a-b-c"));
concat = MethodInvocationSupport.bootstrap(lookup(), "concat", methodType(Object.class, Object.class, Object.class, Object.class), 0);