public Object invokeMethod(String methodName) {
    return invokeMethod(methodName, (Class []) null, (Object []) null);
  }
@Test
  void testInvokeMethod_shouldNotAbleToInvokeMethodWithTypeInference()
      throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException,
      IllegalAccessException {
    assertThrows(ClassNotFoundException.class, () -> {
      Resource r = new Resource(null, new ResourceId("pool1", "name1"), "object");
      r.invokeMethod("indexOf", new Object[] { "ct", 3, 4 });
    });

  }