test_class.declarator: expected = Randomness.nextLong()
test_class.modifier: private final
test_class.original_string: private final long expected = Randomness.nextLong();
test_class.type: long
test_class.var_name: expected
test_class.declarator: term = Randomness.nextInt()
test_class.modifier: private final
test_class.original_string: private final int term = Randomness.nextInt();
test_class.type: int
test_class.var_name: term
test_class.declarator: fibonacciService
test_class.modifier: @MockBean
    private
test_class.original_string: @MockBean
    private FibonacciService fibonacciService;
test_class.type: FibonacciService
test_class.var_name: fibonacciService
test_class.declarator: mockMvc
test_class.modifier: @Autowired
    private
test_class.original_string: @Autowired
    private MockMvc mockMvc;
test_class.type: MockMvc
test_class.var_name: mockMvc
test_class.file: worker/src/test/java/io/servicecomb/company/worker/FibonacciRestEndpointTest.java
test_class.identifier: FibonacciRestEndpointTest
test_case.body: @Test
    public void returnsTokenOfAuthenticatedUser() throws Exception {
      when(fibonacciService.term(term)).thenReturn(expected);
  
      mockMvc.perform(
          get("/fibonacci/term")
              .param("n", String.valueOf(term)))
          .andExpect(status().isOk())
          .andExpect(content().string(String.valueOf(expected)));
    }
test_case.class_method_signature: FibonacciRestEndpointTest.returnsTokenOfAuthenticatedUser()
test_case.full_signature: @Test public void returnsTokenOfAuthenticatedUser()
test_case.identifier: returnsTokenOfAuthenticatedUser
test_case.invocations: thenReturn when term andExpect andExpect perform param get valueOf isOk status string content valueOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void returnsTokenOfAuthenticatedUser()
focal_class.declarator: fibonacciService
focal_class.modifier: private final
focal_class.original_string: private final FibonacciService fibonacciService;
focal_class.type: FibonacciService
focal_class.var_name: fibonacciService
focal_class.file: worker/src/main/java/io/servicecomb/company/worker/FibonacciRestEndpoint.java
focal_class.identifier: FibonacciRestEndpoint
focal_class.interfaces: implements FibonacciEndpoint
focal_class.class_method_signature: FibonacciRestEndpoint.FibonacciRestEndpoint(FibonacciService fibonacciService)
focal_class.full_signature: @Autowired  FibonacciRestEndpoint(FibonacciService fibonacciService)
focal_class.identifier: FibonacciRestEndpoint
focal_class.modifiers: @Autowired
focal_class.parameters: (FibonacciService fibonacciService)
focal_class.signature:  FibonacciRestEndpoint(FibonacciService fibonacciService)
focal_class.class_method_signature: FibonacciRestEndpoint.term(int n)
focal_class.full_signature: @Override @RequestMapping(value = "/term", method = RequestMethod.GET) @ResponseBody public long term(int n)
focal_class.identifier: term
focal_class.modifiers: @Override @RequestMapping(value = "/term", method = RequestMethod.GET) @ResponseBody public
focal_class.parameters: (int n)
focal_class.return: long
focal_class.signature: long term(int n)
focal_method.body: @Override
    @RequestMapping(value = "/term", method = RequestMethod.GET)
    @ResponseBody
    public long term(int n) {
      return fibonacciService.term(n);
    }
focal_method.class_method_signature: FibonacciRestEndpoint.term(int n)
focal_method.full_signature: @Override @RequestMapping(value = "/term", method = RequestMethod.GET) @ResponseBody public long term(int n)
focal_method.identifier: term
focal_method.invocations: term
focal_method.modifiers: @Override @RequestMapping(value = "/term", method = RequestMethod.GET) @ResponseBody public
focal_method.parameters: (int n)
focal_method.return: long
focal_method.signature: long term(int n)