Implemented a JUnit ExpectedException Rule example

Implemented a JUnit ExpectedException Rule example