Why use JUnit test
The best reason for testing your code is that you can find your bugs and errors early and you don't have to burden your head later when you have already put it all together. It can save a lot of time in long-term. If you have a lot of code to cover and change it often, testing it is very recommended.
Running with code
The Assert class API can be found here.