Testing plugins

In working through tutorial 3, I was impressed by how easy it is to connect a plugin under development to an audio input and an audio output in the JUCE Plugin Host, and therefore how easy it is to test that the plugin does what it is expected to do.

Of course, testing entails more than just listening to the output for a given input; it also entials proving that the plugin transforms its input data correctly.

Is it possible to feed the plugin with a purpose built stream of test samples, and for the resulting ouput to be automatically logged? Conceptually speaking, I imagine the audio input and output components in the JUCE Plugin Host being replaced by test input and test output components.