// Then:
ArgumentCaptor<PublishWorkspaceChatAction> actionCaptor =
ArgumentCaptor.forClass(PublishWorkspaceChatAction.class);
verify(dispatcher).execute(actionCaptor.capture(),
isA(NoOpAsyncCallback.class));
PublishWorkspaceChatAction chatAction = actionCaptor.getValue();
assertThat(chatAction.getPerson(),
Matchers.equalTo(person.getId().toString()));
assertThat(chatAction.getMsg(), Matchers.equalTo("hello"));
assertThat(chatAction.getMessageType(),
Matchers.equalTo(HasWorkspaceChatData.MESSAGE_TYPE.USER_MSG));
verify(display).setChatInputText("");
}