@Test
public void shouldTriggerHasDataCommandForEof() {

    IOutput mediaSource = create.mediaSource()
            .with(1).frame()
            .construct();
    mediaSource.start();
    VideoDecoder decoder = create.videoDecoder().withDequeueOutputBufferIndex(0).construct();
    decoder.start();
    decoder.fillCommandQueues();
    new PushDataCommandHandler(mediaSource, decoder, decoder).handle();
    new EofCommandHandler(mediaSource, decoder, decoder).handle();
    decoder.getFrame();
    Frame actualFrame = decoder.getFrame();
    assertEquals(Frame.EOF(), actualFrame);
}