@Test
public void testFlumeConfigAddsErrorOnEmptyAgentNameValue() {

  Properties properties = new Properties();
  properties.put(".something", "value");
  FlumeConfiguration config = new FlumeConfiguration(properties);
  List<FlumeConfigurationError> configurationErrors = config.getConfigurationErrors();
  assertEquals(1, configurationErrors.size());
  assertError(configurationErrors.get(0), AGENT_NAME_MISSING, ".something", "", ERROR);
}