title: Can you make mockito (1.10.17) work with default methods in interfaces?
body: <p>I am a big fan of mockito, unfortunately for <a href="https://github.com/fge/throwing-lambdas">one of my projects</a> which uses Java 8, it fails on me...</p>
  
  <p>Scenario:</p>
  
  <pre><code>public final class MockTest
  {
      @Test
      public void testDefaultMethodsWithMocks()
      {
          final Foo foo = mock(Foo.class);
  
          //when(foo.bar()).thenCallRealMethod();
  
          assertThat(foo.bar()).isEqualTo(42);
      }
  
      @FunctionalInterface
      private interface Foo
      {
          int foo();
  
          default int bar()
          {
              return 42;
          }
      }
  }
  </code></pre>
  
  <p>Unfortunately, the test fails and <code>foo.bar()</code> returns 0.</p>
  
  <p>When I uncomment the <code>when()</code> line, I get a stack trace...</p>
  
  <pre><code>java.lang.NoSuchMethodError: java.lang.Object.bar()I
      at com.github.fge.lambdas.MockTest.testDefaultMethodsWithMocks(MockTest.java:18)
  </code></pre>
  
  <p>This is the latest stable version available on maven; googling around didn't tell me much about the status of mockito with regards to this new functionality in Java 8...</p>
  
  <p>Can you make it work in some other way than implementing interfaces and <code>spy()</code> on them (this works)?</p>