### Question:
MasterServer extends Server<Master, Void> { @Override protected void stopConversation( RequestContext context ) { conversationManager.stop( context ); } MasterServer( Master requestTarget, LogProvider logProvider, Configuration config,
                         TxChecksumVerifier txVerifier, ByteCounterMonitor byteCounterMonitor,
                         RequestMonitor requestMonitor, ConversationManager conversationManager,
                         LogEntryReader<ReadableClosablePositionAwareChannel> entryReader );  static final int FRAME_LENGTH; }### Answer:
@Test public void shouldCleanExistentLockSessionOnFinishOffChannel() { Master master = mock( Master.class ); ConversationManager conversationManager = mock( ConversationManager.class ); LogEntryReader<ReadableClosablePositionAwareChannel> logEntryReader = new VersionAwareLogEntryReader<>(); MasterServer masterServer = new MasterServer( master, mock( LogProvider.class ), mock(Server.Configuration.class ), mock( TxChecksumVerifier.class ), mock( ByteCounterMonitor.class ), mock( RequestMonitor.class ), conversationManager, logEntryReader ); RequestContext requestContext = new RequestContext( 1L, 1, 1, 0, 0L ); masterServer.stopConversation( requestContext ); Mockito.verify( conversationManager ).stop( requestContext ); }