ConfigureVideoDecoderCommandHandler implements ICommandHandler { @Override public void handle() { output.getOutputCommandQueue().queue(Command.HasData, input.getTrackId()); input.setInputResolution(output.getOutputResolution()); } ConfigureVideoDecoderCommandHandler(IVideoOutput output, Plugin decoder); @Override void handle();  }
@Test public void setInputSizeToSurface() { MultipleMediaSource multipleMediaSource = create.multipleMediaSource().withFrameSize(400, 300).construct(); VideoDecoder decoder = create.videoDecoder().construct(); ISurface surface = create.surface().construct(); decoder.setOutputSurface(surface); new ConfigureVideoDecoderCommandHandler(multipleMediaSource, decoder).handle(); verify(surface).setInputSize(eq(400), eq(300)); }