Check out example codes for "Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project mockito-course: There are test failures.". It will help you in understanding the concepts better.

Code Example 1

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.0.0-M1</version>
</plugin>

Learn ReactJs, React Native from akashmittal.com