any()

any()

Used for matching any object or primitive.

when(listMock.contains(any())).thenReturn(True);