@Test
public void fillCommandQueues_InputCommandQueueSizeDoesNotExceedTheNumberOfAvailableInputBuffers() {

    AudioEncoder encoder = create.audioEncoder().withDequeueInputBufferIndex(-1, -1, 0, 1).construct();
    encoder.start();
    for(int i = 0; i < 100; i++) {
        encoder.fillCommandQueues();
    }
    assertThat(encoder.getInputCommandQueue()).equalsTo(Command.NeedData, Command.NeedData);
}