Verify Mockito dependency setup in a JUnit project
Preconditions (2)
Step 1: Add Mockito dependency to the project's build configuration file (pom.xml for Maven or build.gradle for Gradle)
Step 2: Create a simple test class using JUnit 5
Step 3: Annotate a field with @Mock from Mockito
Step 4: Initialize mocks using MockitoAnnotations.openMocks(this) in a setup method
Step 5: Write a test method that uses the mocked object
Step 6: Run the test
✅ Expected Result: The test runs successfully without errors, indicating Mockito is correctly set up and mocks are working