How can I generate synthetic raw file?


I am looking for a way to generate a synthetic raw file with particular controlled image data. I am planning to use it for certain post-processing tests (including conversion through libraw and other raw converters).

Does anyone know a create such artificial raw image?