notNull("Method", method);
notNull("Method argumentd", args);
try {
return method.invoke(instance(), args);
} catch (IllegalAccessException e) {
throw new MycilaTestingException(e, "Error invoking method '%s' with arguments: %s: %s", method, Arrays.deepToString(args), e.getMessage());
} catch (InvocationTargetException e) {
throw new MycilaTestingException(e.getTargetException().getClass().getSimpleName() + ": " + e.getTargetException().getMessage(), e.getTargetException());
} catch (Exception e) {
throw new MycilaTestingException(e, "Error invoking method '%s' with arguments: %s: %s", method, Arrays.deepToString(args), e.getMessage());
}
}