test_class.declarator: subjectMatterExpertRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SubjectMatterExpertRestController subjectMatterExpertRestController;
test_class.type: SubjectMatterExpertRestController
test_class.var_name: subjectMatterExpertRestController
test_class.declarator: subjectMatterExpertService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SubjectMatterExpertService subjectMatterExpertService;
test_class.type: SubjectMatterExpertService
test_class.var_name: subjectMatterExpertService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/SubjectMatterExpertRestControllerTest.java
test_class.identifier: SubjectMatterExpertRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @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);
      }
test_case.class_method_signature: SubjectMatterExpertRestControllerTest.testGetSubjectMatterExpert()
test_case.full_signature: @Test public void testGetSubjectMatterExpert()
test_case.identifier: testGetSubjectMatterExpert
test_case.invocations: thenReturn when getSubjectMatterExpert getSubjectMatterExpert getSubjectMatterExpert verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSubjectMatterExpert()
focal_class.declarator: SUBJECT_MATTER_EXPERTS_URI_PREFIX = "/subjectMatterExperts"
focal_class.modifier: public static final
focal_class.original_string: public static final String SUBJECT_MATTER_EXPERTS_URI_PREFIX = "/subjectMatterExperts";
focal_class.type: String
focal_class.var_name: SUBJECT_MATTER_EXPERTS_URI_PREFIX
focal_class.declarator: subjectMatterExpertService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SubjectMatterExpertService subjectMatterExpertService;
focal_class.type: SubjectMatterExpertService
focal_class.var_name: subjectMatterExpertService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/SubjectMatterExpertRestController.java
focal_class.identifier: SubjectMatterExpertRestController
focal_class.class_method_signature: SubjectMatterExpertRestController.getSubjectMatterExpert(@PathVariable("userId") String userId)
focal_class.full_signature: @RequestMapping(value = SUBJECT_MATTER_EXPERTS_URI_PREFIX + "/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SUBJECT_MATTER_EXPERTS_GET) public SubjectMatterExpert getSubjectMatterExpert(@PathVariable("userId") String userId)
focal_class.identifier: getSubjectMatterExpert
focal_class.modifiers: @RequestMapping(value = SUBJECT_MATTER_EXPERTS_URI_PREFIX + "/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SUBJECT_MATTER_EXPERTS_GET) public
focal_class.parameters: (@PathVariable("userId") String userId)
focal_class.return: SubjectMatterExpert
focal_class.signature: SubjectMatterExpert getSubjectMatterExpert(@PathVariable("userId") String userId)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = SUBJECT_MATTER_EXPERTS_URI_PREFIX + "/{userId}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_SUBJECT_MATTER_EXPERTS_GET)
      public SubjectMatterExpert getSubjectMatterExpert(@PathVariable("userId") String userId)
      {
          return subjectMatterExpertService.getSubjectMatterExpert(new SubjectMatterExpertKey(userId));
      }
focal_method.class_method_signature: SubjectMatterExpertRestController.getSubjectMatterExpert(@PathVariable("userId") String userId)
focal_method.full_signature: @RequestMapping(value = SUBJECT_MATTER_EXPERTS_URI_PREFIX + "/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SUBJECT_MATTER_EXPERTS_GET) public SubjectMatterExpert getSubjectMatterExpert(@PathVariable("userId") String userId)
focal_method.identifier: getSubjectMatterExpert
focal_method.invocations: getSubjectMatterExpert
focal_method.modifiers: @RequestMapping(value = SUBJECT_MATTER_EXPERTS_URI_PREFIX + "/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SUBJECT_MATTER_EXPERTS_GET) public
focal_method.parameters: (@PathVariable("userId") String userId)
focal_method.return: SubjectMatterExpert
focal_method.signature: SubjectMatterExpert getSubjectMatterExpert(@PathVariable("userId") String userId)