Issue 647: Initial commit

Added mock version of raw() method and the corresponding test.