 <pre><code>Class mockedClass = mock.getClass().getInterfaces()[0]; System.out.println("Class is " + mockedClass.getCanonicalName()); </code></pre> <p>Will print:</p> <pre><code>Interface is MyInterface </code></pre> <p>There are possibly more robust ways to do it, but it gets the job done for this particular JMock version at least.</p>