When using JUnit 5, make sure that you use the interfaces provided by org.junit.jupiter
So for instance, you should annotate your tests with org.junit.jupiter.api.Test
instead of org.junit.Test
For JUnit 4, and prior, use the interfaces provided by org.junit