JDK 21 introduced Sequenced Collections (JEP 431) which added new interfaces to the java.util Collections API. Using these interfaces as return types leads to Mockito returning null when the method is unstubbed since they are obviously missing in org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues.
Is it possible to add this new API or impossible because of Java 11 baseline?
JDK 21 introduced Sequenced Collections (JEP 431) which added new interfaces to the
java.utilCollections API. Using these interfaces as return types leads to Mockito returningnullwhen the method is unstubbed since they are obviously missing inorg.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues.Is it possible to add this new API or impossible because of Java 11 baseline?