private static String getName(final Object target, final String methodName) {
    StringBuilder sb = new StringBuilder(methodName).append(" invoked on ");
    if (target instanceof Class) {
      sb.append("class ").append(((Class) target).getName());
    } else {
      sb.append("an instance of ").append(target.getClass().getName());
    }
    return sb.toString();
  }
Returns the name of a {@code AsyncInvocation} based on its {@code targetObject} and
{@code methodName}.
geode-dunit/src/main/java/org/apache/geode/test/dunit/AsyncInvocation.java