Title: Intermittent Null Return in Mockito Unit Tests for Spring Service Methods
I am encountering an intermittent issue with my unit tests for a Spring service where the method under test occasionally returns null. This issue is random and affects different methods during the Act phase of the tests.
Cannot test method in service logic
I want to test this method: