DTLSSession implements Destroyable { public long getSequenceNumber() { return getSequenceNumber(writeEpoch); } DTLSSession(InetSocketAddress peerAddress);  DTLSSession(SessionId id, InetSocketAddress peerAddress, SessionTicket ticket, long initialSequenceNo);  DTLSSession(InetSocketAddress peerAddress, long initialSequenceNo);  DTLSSession(InetSocketAddress peerAddress, long initialSequenceNo, long creationTime); @Override void destroy(); @Override boolean isDestroyed(); SessionId getSessionIdentifier(); ConnectionId getWriteConnectionId(); long getCreationTime(); String getLastHandshakeTime(); String getHostName(); void setHostName(String hostname); ServerNames getServerNames(); void setServerNames(ServerNames serverNames); boolean isSniSupported(); DtlsEndpointContext getConnectionWriteContext(); DtlsEndpointContext getConnectionReadContext(); CipherSuite getCipherSuite(); int getWriteEpoch(); int getReadEpoch(); long getSequenceNumber(); long getSequenceNumber(int epoch); String getReadStateCipher(); String getWriteStateCipher(); void setParameterAvailable(); HandshakeParameter getParameter(); int getMaxCiphertextExpansion(); int getMaxFragmentLength(); Integer getRecordSizeLimit(); int getEffectiveFragmentLimit(); SignatureAndHashAlgorithm getSignatureAndHashAlgorithm(); InetSocketAddress getPeer(); void setPeer(InetSocketAddress peer); Principal getPeerIdentity(); @Deprecated boolean isRecordProcessable(long epoch, long sequenceNo, boolean useWindowOnly); boolean isRecordProcessable(long epoch, long sequenceNo, int useExtendedWindow); boolean markRecordAsRead(long epoch, long sequenceNo); boolean isMarkedAsClosed(); void markCloseNotiy(int epoch, long sequenceNo); SessionTicket getSessionTicket(); static final int DTLS_HEADER_LENGTH; @Deprecated
	static final int HEADER_LENGTH; }
@Test(expected = IllegalStateException.class) public void testGetSequenceNumberEnforcesMaxSequenceNo() { session = new DTLSSession(PEER_ADDRESS, DtlsTestTools.MAX_SEQUENCE_NO); session.getSequenceNumber(); }