title: Mock ProceedingJoinPoint Signature
body: <p>I am trying to mock a ProceedingJoinPoint class and I am having difficulty mocking a method.</p>
  
  <p>Here is the code that is calling the mock class:</p>
  
  <pre><code>...
  // ProceedingJoinPoint joinPoint
  
  Object targetObject = joinPoint.getTarget();
  try {
  
    MethodSignature signature = (MethodSignature) joinPoint.getSignature();
    Method method = signature.getMethod();
  
    ...
    ...
  </code></pre>
  
  <p>and here is my mocked class attempt so far...</p>
  
  <pre><code>accountService = new AccountService();
  ProceedingJoinPoint joinPoint = mock(ProceedingJoinPoint.class);
  when(joinPoint.getTarget()).thenReturn(accountService);
  </code></pre>
  
  <p>I am now not sure how to mock a signature to get what a method?</p>
  
  <pre><code>when(joinPoint.getSignature()).thenReturn(SomeSignature); //???
  </code></pre>
  
  <p>Any ideas?</p>