@Test
public void testGetSubjectMatterExpert()
{

    SubjectMatterExpert subjectMatterExpert = new SubjectMatterExpert(new SubjectMatterExpertKey(USER_ID),
        new SubjectMatterExpertContactDetails(USER_FULL_NAME, USER_JOB_TITLE, USER_EMAIL_ADDRESS, USER_TELEPHONE_NUMBER));
    when(subjectMatterExpertService.getSubjectMatterExpert(new SubjectMatterExpertKey(USER_ID))).thenReturn(subjectMatterExpert);
    // Get subject matter expert information.
    SubjectMatterExpert result = subjectMatterExpertRestController.getSubjectMatterExpert(USER_ID);
    // Verify the external calls.
    verify(subjectMatterExpertService).getSubjectMatterExpert(new SubjectMatterExpertKey(USER_ID));
    verifyNoMoreInteractions(subjectMatterExpertService);
    // Validate the returned object.
    assertEquals(subjectMatterExpert, result);
}