matchMessage

fun MockKMatcherScope.matchMessage(    expectedId: Uid<Message>?,     expectedContact: ConversationContact,     expectedText: String,     expectedState: MessageState): Message

Helper method to verify in a verification scope if a Message matches.

For example:

verify {
mockMessagingManagementService.addMessageAsync(
matchMessage(
MessagingService.ConversationContact(CONTACT_NAME, CONTACT_PHONE, null),
MESSAGE_CONTENT, MessagingService.MessageState.INCOMING_UNREAD
)
)
}