Implemented a JUnit ErrorCollector Rule example

Implemented a JUnit ErrorCollector Rule example