I'm trying to mock the below method,Actual Methodpublic List<PricingSchemesDTO> loadPricingSchemeDto(Sheet pricingSchemeSheet, List<String> errors) {}
Inside junit,when(readAndProcessPricingSchemeUtils.loadPricingSchemeDto(Mockito.any(), Mockito.any())).thenReturn(pricingSchemesDTOList);
But,this above line is giving the below exception - org.mockito.exceptions.misusing.InvalidUseOfMatchersException.
Can someone help to mock this correctly, thanks