How do I use JUnit in Maven?

How do I use JUnit in Maven?

To begin using JUnit in Maven, add the needed JUnit version to your project:

[...] junit junit 4.11 test [...]

Read here for further details: Maven Surefire Plugin – Using JUnit