@Test
public void testAddCommentWithUserNameAndSubject() throws Exception {

	when(
		_mbMessage.getMessageId()
	).thenReturn(
		_MBMESSAGE_ID
	);
	Assert.assertEquals(
		_MBMESSAGE_ID,
		_mbCommentManagerImpl.addComment(
			_USER_ID, _GROUP_ID, _CLASS_NAME, _ENTRY_ID, _USER_NAME,
			_SUBJECT, _BODY, _serviceContextFunction));
	Mockito.verify(
		_mbMessageLocalService
	).addDiscussionMessage(
		_USER_ID, _USER_NAME, _GROUP_ID, _CLASS_NAME, _ENTRY_ID, _THREAD_ID,
		_ROOT_MESSAGE_ID, _SUBJECT, _BODY, _serviceContext
	);
	Mockito.verify(
		_mbMessageLocalService
	).getDiscussionMessageDisplay(
		_USER_ID, _GROUP_ID, _CLASS_NAME, _ENTRY_ID,
		WorkflowConstants.STATUS_APPROVED
	);
}