matchConversation

@IviExperimental(reasons = [])
fun MockKMatcherScope.matchConversation(expectedId: Uid<Conversation>?, expectedContacts: Set<ConversationContact>, expectedCapabilities: EnumSet<ConversationCapability>, expectedMessageType: MessageType, expectedUnreadMessages: List<Uid<Message>>): Conversation

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

For example:

verify {
mockMessagingManagementService.addConversationAsync(
matchConversation(
setOf(MessagingService.ConversationContact(CONTACT_NAME, CONTACT_PHONE, null)
),
EnumSet.of(MessagingService.ConversationCapability.CAN_REPLY_USING_TEXT),
CONVERSATION.messageType,
emptyList()
)
}