I tried to add class format for list in 2 ways below but it doesn't work.
nullable((Class<List<Integer>>) new ArrayList<Integer>().getClass())
nullable(Class<List<Integer>>)
The nullable
function is from org.mockito.ArgumentMatchers.nullable(Class<List> clazz)
.