Configuring and using JUnit for unit testing