Remove JUnit 3.x references from test libraries for java

The following changes are made
1. Remove all references to JUnit 3.x from pom.xml
2. Use ExpectedException Rule 
3. Use JUnit4 Test Runner

Fixes Issue #1