title: how to intercept a method with specific parameters with bytebuddy
body: <p>I want to intercept method named methodA with one arg which's type is String as blow, what should i do. How to use hasParameters() api?</p>
  
  <pre><code>public class Demo {
  
      public static void main(String[] args) {
  
          new ByteBuddy()
                  .subclass(A.class)
                  .method(named("methodA").and(hasParameters(?)))
      }
  
  
      static class A {
  
          public void methodA() {
              System.out.println("methodA() invoked.");
          }
  
          public void methodA(String arg) {
              System.out.println("methodA(" + arg + ") invoked.");
          }
      }
  
  }
  </code></pre>