@Test
public void testNormalizeValue() throws Exception{

  // If template not defined
  String normalizedValue = ConfigMergeHelper.normalizeValue(null, "2048m");
  assertEquals("2048m", normalizedValue);
  // Template does not define heap
  normalizedValue = ConfigMergeHelper.normalizeValue("3k", "2048");
  assertEquals("2048", normalizedValue);
  // Template - megabytes
  normalizedValue = ConfigMergeHelper.normalizeValue("1024m", "2048");
  assertEquals("2048m", normalizedValue);
  normalizedValue = ConfigMergeHelper.normalizeValue("1024M", "2048");
  assertEquals("2048M", normalizedValue);
  // Template - gigabytes
  normalizedValue = ConfigMergeHelper.normalizeValue("4g", "2");
  assertEquals("2g", normalizedValue);
  normalizedValue = ConfigMergeHelper.normalizeValue("4G", "2");
  assertEquals("2G", normalizedValue);
}