mockito-kotlin / com.nhaarman.mockitokotlin2 / refEq

refEq

fun <T> refEq(value: T, vararg excludeFields: String): T?

Object argument that is reflection-equal to the given value with support for excluding selected fields from a class.