@Test
public void testPopulateConfigurationEntity_oldSchema() throws Exception {

  Map<String, String> configuration = new HashMap<String, String>();
  configuration.put("global/property1", "val1");
  configuration.put("global/property2", "val2");
  BlueprintConfiguration config = new BlueprintConfigEntity();
  provider.populateConfigurationEntity(configuration, config);
  assertNotNull(config.getConfigData());
  assertNotNull(config.getConfigAttributes());
  Map<?, ?> configData = StageUtils.getGson().fromJson(config.getConfigData(), Map.class);
  Map<?, Map<?, ?>> configAttrs = StageUtils.getGson().fromJson(config.getConfigAttributes(), Map.class);
  assertNotNull(configData);
  assertNotNull(configAttrs);
  assertEquals(2, configData.size());
  assertTrue(configData.containsKey("property1"));
  assertTrue(configData.containsKey("property2"));
  assertEquals("val1", configData.get("property1"));
  assertEquals("val2", configData.get("property2"));
  assertEquals(0, configAttrs.size());
}