@Test
public void decoderShouldAskCommandProcessorToProcessNextPair_IfNoFreeInputBuffers() {

    IOutput mediaSource = create.mediaSource().with(1).frame().construct();
    VideoDecoder decoder = create.videoDecoder().withDequeueInputBufferIndex(-1).construct();
    decoder.getInputCommandQueue().dequeue();
    new PushDataCommandHandler(mediaSource, decoder, decoder).handle();
    assertThat(decoder.getInputCommandQueue()).equalsTo(new Pair<Command, Integer>(Command.NextPair, 0), new Pair<Command, Integer>(Command.NeedData, 0));
}