AutoLock extends ReentrantLock implements Holdable { @Override public Mutex holdInterruptibly() throws InterruptedException { lockInterruptibly(); return mutex; } AutoLock();  AutoLock(boolean fair); @Override Mutex hold(); @Override Mutex holdInterruptibly();  }
@Test void holdInterruptibly() throws InterruptedException { lock.holdInterruptibly(); verify(lock).lockInterruptibly(); }