Fix of bug with broken streams in pattern matching.
Some mocking and insertion of Java into extraction test-suite.