adding junit dependencies and a few tests
Automatic code reformatting