Unit Testing/JUnit/Create a Simple Test

Create a Java Program
Create the following Java program. Save it as

Create a Test Program
Create the following JUnit test program. Save it as

Test Success
Test the program by running it and observe the results.

Test Failure
Change the multiply source code somehow, such as multiplying by 0 rather than multiplying by y. Test the program by running it again and observe the results.