nhaarman
10/26/2016, 10:05 AMdestinationContext.getDestination() is a mock, and calling position on that mock returns null. Since one of the later versions of Mockito the any() method does not accept null values anymore. Instead, use anyOrNull(). You are probably using an earlier version of Mockito yourself than the one that is being pulled in by Mockito-Kotlin.