public static ImpactMeasureBuilder fromMap(Map<String, Long> map) {
    checkImpactMap(map);
    return new ImpactMeasureBuilder(map);
  }
@Test
  void fromMap_whenMissingField_shouldThrowException() {
    Map<String, Long> map = Map.of();
    assertThatThrownBy(() -> ImpactMeasureBuilder.fromMap(map))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Map must contain a total key");
  }