Object decoded = new Object();
when(decoder.decode(buff, decodingState)).thenReturn(decoded).thenReturn(decoded).thenReturn(null);
ReadFilterChainController ctrl = mock(ReadFilterChainController.class);
// run
filter.messageReceived(session, buff, ctrl);
// verify