test_class.declarator: PROPERTY_ONE =
        new HadoopConfigurationProperty<>("test-key")
test_class.modifier: private static final
test_class.original_string: private static final HadoopConfigurationProperty<String> PROPERTY_ONE =
        new HadoopConfigurationProperty<>("test-key");
test_class.type: HadoopConfigurationProperty<String>
test_class.var_name: PROPERTY_ONE
test_class.declarator: VALUE_ONE = "test-value"
test_class.modifier: private static final
test_class.original_string: private static final String VALUE_ONE = "test-value";
test_class.type: String
test_class.var_name: VALUE_ONE
test_class.declarator: PROPERTY_TWO =
        new HadoopConfigurationProperty<>("test-key2")
test_class.modifier: private static final
test_class.original_string: private static final HadoopConfigurationProperty<String> PROPERTY_TWO =
        new HadoopConfigurationProperty<>("test-key2");
test_class.type: HadoopConfigurationProperty<String>
test_class.var_name: PROPERTY_TWO
test_class.declarator: VALUE_TWO = "test-value2"
test_class.modifier: private static final
test_class.original_string: private static final String VALUE_TWO = "test-value2";
test_class.type: String
test_class.var_name: VALUE_TWO
test_class.file: util-hadoop/src/test/java/com/google/cloud/hadoop/util/ConfigurationUtilTest.java
test_class.identifier: ConfigurationUtilTest
test_case.body: @Test
    public void testListGetMandatoryConfig() throws IOException {
      // Test one null value.
      Configuration config = new Configuration();
      config.set(PROPERTY_ONE.getKey(), VALUE_ONE);
  
      assertThrows(
          IOException.class,
          () -> getMandatoryConfig(config, Lists.newArrayList(PROPERTY_ONE, PROPERTY_TWO)));
  
      // Test one empty string.
      config.set(PROPERTY_TWO.getKey(), "");
      assertThrows(
          IOException.class,
          () -> getMandatoryConfig(config, Lists.newArrayList(PROPERTY_ONE, PROPERTY_TWO)));
  
      // Test proper setting.
      config.set(PROPERTY_TWO.getKey(), VALUE_TWO);
      Map<String, String> expectedMap = new HashMap<>();
      expectedMap.put(PROPERTY_ONE.getKey(), VALUE_ONE);
      expectedMap.put(PROPERTY_TWO.getKey(), VALUE_TWO);
  
      assertThat(getMandatoryConfig(config, Lists.newArrayList(PROPERTY_ONE, PROPERTY_TWO)))
          .isEqualTo(expectedMap);
    }
test_case.class_method_signature: ConfigurationUtilTest.testListGetMandatoryConfig()
test_case.full_signature: @Test public void testListGetMandatoryConfig()
test_case.identifier: testListGetMandatoryConfig
test_case.invocations: set getKey assertThrows getMandatoryConfig newArrayList set getKey assertThrows getMandatoryConfig newArrayList set getKey put getKey put getKey isEqualTo assertThat getMandatoryConfig newArrayList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testListGetMandatoryConfig()
focal_class.file: util-hadoop/src/main/java/com/google/cloud/hadoop/util/ConfigurationUtil.java
focal_class.identifier: ConfigurationUtil
focal_class.class_method_signature: ConfigurationUtil.getMandatoryConfig(
        Configuration config, T property)
focal_class.full_signature: public static String getMandatoryConfig(
        Configuration config, T property)
focal_class.identifier: getMandatoryConfig
focal_class.modifiers: public static
focal_class.parameters: (
        Configuration config, T property)
focal_class.return: String
focal_class.signature: String getMandatoryConfig(
        Configuration config, T property)
focal_class.class_method_signature: ConfigurationUtil.getMandatoryConfig(
        Configuration config, List<T> properties)
focal_class.full_signature: public static Map<String, String> getMandatoryConfig(
        Configuration config, List<T> properties)
focal_class.identifier: getMandatoryConfig
focal_class.modifiers: public static
focal_class.parameters: (
        Configuration config, List<T> properties)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getMandatoryConfig(
        Configuration config, List<T> properties)
focal_method.body: public static <T extends HadoopConfigurationProperty<?>> String getMandatoryConfig(
        Configuration config, T property) throws IOException {
      String value = config.get(property.getKey());
      if (Strings.isNullOrEmpty(value)) {
        throw new IOException("Must supply a value for configuration setting: " + property.getKey());
      }
      return value;
    }
focal_method.class_method_signature: ConfigurationUtil.getMandatoryConfig(
        Configuration config, T property)
focal_method.full_signature: public static String getMandatoryConfig(
        Configuration config, T property)
focal_method.identifier: getMandatoryConfig
focal_method.invocations: get getKey isNullOrEmpty getKey
focal_method.modifiers: public static
focal_method.parameters: (
        Configuration config, T property)
focal_method.return: String
focal_method.signature: String getMandatoryConfig(
        Configuration config, T property)