@Test
public void testFlumeConfigAddsErrorOnEmptyPropertyName() {

  HashMap<String, String> properties = new HashMap<>();
  properties.put("agent.", "something");
  FlumeConfiguration config = new FlumeConfiguration(properties);
  List<FlumeConfigurationError> configurationErrors = config.getConfigurationErrors();
  assertEquals(1, configurationErrors.size());
  assertError(configurationErrors.get(0), PROPERTY_NAME_NULL, "agent.", "", ERROR);
}