LockFacade implements Lock { @Override public boolean isLockOwningSession() { return delegate.isLockOwningSession(); } LockFacade(final @NotNull Lock delegate, final @NotNull SessionFacade<S> session); @Override String getLockOwner(); @Override boolean isDeep(); @Override Node getNode(); @Override String getLockToken(); @Override long getSecondsRemaining(); @Override boolean isLive(); @Override boolean isSessionScoped(); @Override boolean isLockOwningSession(); @Override void refresh();  }
@Test public void testIsLockOwningSession() { Lock delegate = mock(Lock.class); LockFacade<Session> facade = getFacade(delegate); when(delegate.isLockOwningSession()).thenReturn(true); assertTrue("is true", facade.isLockOwningSession()); }