test_class.file: resources/src/test/java/org/hl7/davinci/SharedUtilitiesTest.java
test_class.identifier: SharedUtilitiesTest
test_case.body: @Test
    public void testCalculateAge() {
      LocalDate birthDate = LocalDate.now().minus(40, ChronoUnit.YEARS);
      int age = SharedUtilities
          .calculateAge(Date.from(birthDate.atStartOfDay(ZoneId.systemDefault()).toInstant()));
      assertEquals(40, age);
    }
test_case.class_method_signature: SharedUtilitiesTest.testCalculateAge()
test_case.full_signature: @Test public void testCalculateAge()
test_case.identifier: testCalculateAge
test_case.invocations: minus now calculateAge from toInstant atStartOfDay systemDefault assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCalculateAge()
focal_class.file: resources/src/main/java/org/hl7/davinci/SharedUtilities.java
focal_class.identifier: SharedUtilities
focal_class.class_method_signature: SharedUtilities.compareReferenceToId(String reference, String id)
focal_class.full_signature: static boolean compareReferenceToId(String reference, String id)
focal_class.identifier: compareReferenceToId
focal_class.modifiers: static
focal_class.parameters: (String reference, String id)
focal_class.return: boolean
focal_class.signature: boolean compareReferenceToId(String reference, String id)
focal_class.class_method_signature: SharedUtilities.calculateAge(Date birthDate)
focal_class.full_signature: public static int calculateAge(Date birthDate)
focal_class.identifier: calculateAge
focal_class.modifiers: public static
focal_class.parameters: (Date birthDate)
focal_class.return: int
focal_class.signature: int calculateAge(Date birthDate)
focal_method.body: public static int calculateAge(Date birthDate) {
      if (birthDate == null) {
        throw new NullPointerException("birthDate cannot be null");
      }
      LocalDate localBirthDate = birthDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
      return Period.between(localBirthDate, LocalDate.now()).getYears();
    }
focal_method.class_method_signature: SharedUtilities.calculateAge(Date birthDate)
focal_method.full_signature: public static int calculateAge(Date birthDate)
focal_method.identifier: calculateAge
focal_method.invocations: toLocalDate atZone toInstant systemDefault getYears between now
focal_method.modifiers: public static
focal_method.parameters: (Date birthDate)
focal_method.return: int
focal_method.signature: int calculateAge(Date birthDate)