CompoundContext { public void restoreSavedInode() throws ChimeraNFSException { if( _savedInode == null ) { throw new RestoreFhException("no saved file handle"); } _currentInode = _savedInode; _currentStateid = _savedStateid; _log.debug("restored Inode: {}", _currentInode ); } CompoundContext(CompoundContextBuilder builder); RpcCall getRpcCall(); Subject getSubject(); VirtualFileSystem getFs(); Optional<NFSv41DeviceManager> getDeviceManager(); LockManager getLm(); int getMinorversion(); Inode currentInode(); void currentInode(Inode inode); void clearCurrentInode(); void restoreSavedInode(); Inode savedInode(); void saveCurrentInode(); void setSession(NFSv41Session session); NFSv41Session getSession(); NFSv4StateHandler getStateHandler(); SessionSlot getSessionSlot(); void setSessionSlot(SessionSlot slot); boolean cacheThis(); void setCacheThis(boolean cacheThis); List<nfs_resop4> getCache(); void setCache(List<nfs_resop4> cache); stateid4 currentStateid(); void currentStateid(stateid4 currentStateid); ExportTable getExportTable(); ServerIdProvider getServerIdProvider(); Principal getPrincipal(); int getExchangeIdFlags(); InetSocketAddress getRemoteSocketAddress(); InetSocketAddress getLocalSocketAddress(); verifier4 getRebootVerifier();  }
@Test(expected = RestoreFhException.class) public void testReastireCurrentFileHandleNoSaved() throws ChimeraNFSException { context.restoreSavedInode(); }