test_class.declarator: generation = nextInt(90) + 1
test_class.modifier: private final
test_class.original_string: private final int generation = nextInt(90) + 1;
test_class.type: int
test_class.var_name: generation
test_class.declarator: fibonacciValue = nextLong()
test_class.modifier: private final
test_class.original_string: private final long fibonacciValue = nextLong();
test_class.type: long
test_class.var_name: fibonacciValue
test_class.declarator: fibonacciCalculator = mock(FibonacciCalculator.class)
test_class.modifier: private final
test_class.original_string: private final FibonacciCalculator fibonacciCalculator = mock(FibonacciCalculator.class);
test_class.type: FibonacciCalculator
test_class.var_name: fibonacciCalculator
test_class.declarator: beekeeperService = new BeekeeperServiceImpl(fibonacciCalculator)
test_class.modifier: private final
test_class.original_string: private final BeekeeperService beekeeperService = new BeekeeperServiceImpl(fibonacciCalculator);
test_class.type: BeekeeperService
test_class.var_name: beekeeperService
test_class.file: beekeeper/src/test/java/io/servicecomb/company/beekeeper/BeekeeperServiceImplTest.java
test_class.identifier: BeekeeperServiceImplTest
test_case.body: @Test
    public void calculatesAncestorsOfQueenAtGenerationN() {
      when(fibonacciCalculator.term(generation + 2)).thenReturn(fibonacciValue);
  
      long ancestors = beekeeperService.ancestorsOfQueenAt(generation);
  
      assertThat(ancestors).isEqualTo(fibonacciValue);
    }
test_case.class_method_signature: BeekeeperServiceImplTest.calculatesAncestorsOfQueenAtGenerationN()
test_case.full_signature: @Test public void calculatesAncestorsOfQueenAtGenerationN()
test_case.identifier: calculatesAncestorsOfQueenAtGenerationN
test_case.invocations: thenReturn when term ancestorsOfQueenAt isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void calculatesAncestorsOfQueenAtGenerationN()
focal_class.declarator: fibonacciCalculator
focal_class.modifier: private final
focal_class.original_string: private final FibonacciCalculator fibonacciCalculator;
focal_class.type: FibonacciCalculator
focal_class.var_name: fibonacciCalculator
focal_class.file: beekeeper/src/main/java/io/servicecomb/company/beekeeper/BeekeeperServiceImpl.java
focal_class.identifier: BeekeeperServiceImpl
focal_class.interfaces: implements BeekeeperService
focal_class.class_method_signature: BeekeeperServiceImpl.BeekeeperServiceImpl(FibonacciCalculator fibonacciCalculator)
focal_class.full_signature:   BeekeeperServiceImpl(FibonacciCalculator fibonacciCalculator)
focal_class.identifier: BeekeeperServiceImpl
focal_class.parameters: (FibonacciCalculator fibonacciCalculator)
focal_class.signature:  BeekeeperServiceImpl(FibonacciCalculator fibonacciCalculator)
focal_class.class_method_signature: BeekeeperServiceImpl.ancestorsOfDroneAt(int generation)
focal_class.full_signature: @Override public long ancestorsOfDroneAt(int generation)
focal_class.identifier: ancestorsOfDroneAt
focal_class.modifiers: @Override public
focal_class.parameters: (int generation)
focal_class.return: long
focal_class.signature: long ancestorsOfDroneAt(int generation)
focal_class.class_method_signature: BeekeeperServiceImpl.ancestorsOfQueenAt(int generation)
focal_class.full_signature: @Override public long ancestorsOfQueenAt(int generation)
focal_class.identifier: ancestorsOfQueenAt
focal_class.modifiers: @Override public
focal_class.parameters: (int generation)
focal_class.return: long
focal_class.signature: long ancestorsOfQueenAt(int generation)
focal_method.body: @Override
    public long ancestorsOfQueenAt(int generation) {
      if (generation <= 0) {
        return 0;
      }
      // please refer to the link in javadoc for the reason of + 2
      return fibonacciCalculator.term(generation + 2);
    }
focal_method.class_method_signature: BeekeeperServiceImpl.ancestorsOfQueenAt(int generation)
focal_method.full_signature: @Override public long ancestorsOfQueenAt(int generation)
focal_method.identifier: ancestorsOfQueenAt
focal_method.invocations: term
focal_method.modifiers: @Override public
focal_method.parameters: (int generation)
focal_method.return: long
focal_method.signature: long ancestorsOfQueenAt(int generation)