Complete the code to create a mock object using Mockito.
MyService service = Mockito.[1](MyService.class);
Mockito.mock() creates a mock object for the given class.
Complete the code to stub a method call to return a specific value.
Mockito.[1](service.getData()).thenReturn("mocked data");
Mockito.when() is used to stub a method call to return a desired value.
Fix the error in verifying that a method was called exactly once.
Mockito.verify(service, Mockito.[1]()).process();Mockito.times(1) verifies the method was called exactly once. 'once()' does not exist.
Fill both blanks to mock a complex dependency and stub its method.
Dependency dep = Mockito.[1](Dependency.class); Mockito.[2](dep.getValue()).thenReturn(42);
First, create a mock with mock(). Then stub the method with when().
Fill all three blanks to verify a method call with argument matcher and times.
Mockito.verify(service, Mockito.[1](3)).execute(Mockito.[2]("test"), Mockito.[3]());
Use times(3) to check call count, eq("test") to match exact argument, and any() for any argument.
