title: How to verify invocation of super.method() of parent class?
body: <p>I have three very simple classes. One of them extends parent class.</p>
  
  <pre><code>public class Parent{
      protected String print() {
          // some code
      }
  }
  </code></pre>
  
  <p>Here is a child class.</p>
  
  <pre><code>public class Child extends Parent {
      /**
       * Shouldn't invoke protected Parent.print() of parent class.
       */
      @Override
      protected String print() {
          // some additional behavior
          return super.print();
      }
  }
  </code></pre>
  
  <p>And test class.</p>
  
  <pre><code>public class ChildTest {
  
      @Test
      public void should_mock_invocation_of_protected_method_of_parent_class() throws Exception {
  
          // Given
          Child child = PowerMockito.mock(Child.class);
          Method method = PowerMockito.method(Parent.class, "print");
          PowerMockito.when(child, method).withNoArguments().thenReturn("abc");
  
          // When
          String retrieved = child.print();
  
          // Than
          Mockito.verify(child, times(1)).print(); // verification of child method
          Assert.assertEquals(retrieved, "abc");
      }
  }
  </code></pre>
  
  <p>I need to verify <code>super.print()</code> invocation. How can I do it?</p>