title: Mockito - mocking classes with native methods
body: <p>I have simple test case:</p>
  
  <pre><code>@Test
  public void test() throws Exception{
         TableElement table = mock(TableElement.class);
         table.insertRow(0);
  }
  </code></pre>
  
  <p>Where TableElement is GWT class with method <code>insertRow</code> defined as:</p>
  
  <pre><code>public final native TableRowElement insertRow(int index);
  </code></pre>
  
  <p>When I launch test I'm getting: </p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: com.google.gwt.dom.client.TableElement.insertRow(I)Lcom/google/gwt/dom/client/TableRowElement;
      at com.google.gwt.dom.client.TableElement.insertRow(Native Method)
  </code></pre>
  
  <p>Which as I believe is related with insertRow method being native. Is there any way or workaround to mock such methods with Mockito?</p>