mockito-kotlin / com.nhaarman.mockitokotlin2 / refEq

refEq

inline fun <reified T : Any> 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.