title: Junit test coverage ReadWriteLock
body: <p>I am trying to reach high % coverage using EclEmma on a piece of code and I am having problem covering the following:</p>
  
  <pre class="lang-java prettyprint-override"><code>public class foo() {
  
      ReadWriteLock compositeLock;
  
      @VisibleForTesting
      @Guardedby("compositeLock")
      public class String far() {
          compositeLock.getLock().unlock();
          try {
              //code..
              return answer;
          } finally { 
              compositeLock.getLock().lock();
          }
      }
  }
  </code></pre>
  
  <p>I am missing coverage on the <code>finally</code> part, should I use mockito and mock the ReadWriteLock? Or is mocking not needed?</p>