Implement unit processor (1/2).
Implement fromStream method for unit processor.
Add unit test for unit processor.