@Test
public void testFlumeConfigAddsErrorOnNullValue() {

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