@Test
public void handleEof() {

    decoder = create.videoDecoder().whichDecodesTo(Frame.EOF()).construct();
    decoder.push(Frame.EOF());
    decoder.start();
    new CopyDataCommandHandler(decoder, encoder).handle();
    verify(mediaCodec).queueInputBuffer(anyInt(), anyInt(), anyInt(), anyLong(), eq(IMediaCodec.BUFFER_FLAG_END_OF_STREAM));
}