public Object invokeMethod(String methodName) {
    return invokeMethod(methodName, (Class []) null, (Object []) null);
  }
@Test
  void testInvokeMethod_shouldAbleToInvokeMethodWithNoParams() {
    Resource r = new Resource(null, new ResourceId("pool1", "name1"), "object");
    assertEquals(6, r.invokeMethod("length"));
    assertEquals(6, r.invokeMethod("length", new Class[]{}, new Object[]{}));
  }