Exception:
Test cannot be resolved to a type
Resolution:
1. Right Click the Project.
2. Select Properties.
3. Select Java Build Path.
4. Select Libraries.
5. Select Add Library
6. Select JUnit.
7. Click the Next button.

8. Select the JUnit version.
9. Include the following line of code in your Class.
import org.junit.Test;