Add Json Config support for entity to DBus string

The entity map comprises both entity types and their corresponding
names, essential for generating unique D-Bus paths for each entity.
However, challenges arise due to variations in path generation across
companies, often dictated by differing entity types. To address this,
enabling configurability of EntityID becomes imperative, empowering
communities to tailor configurations to their specific use cases.

Testing:
Unit tests passed

Change-Id: I3981fde64bd00940caa5067a9472fd948e74cbf0
Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
diff --git a/host-bmc/test/utils_test.cpp b/host-bmc/test/utils_test.cpp
index 701f4cb..373274f 100644
--- a/host-bmc/test/utils_test.cpp
+++ b/host-bmc/test/utils_test.cpp
@@ -1,4 +1,5 @@
 #include "../utils.hpp"
+#include "common/utils.hpp"
 
 #include <libpldm/pdr.h>
 
@@ -9,6 +10,13 @@
 namespace fs = std::filesystem;
 using namespace pldm;
 using namespace pldm::utils;
+using namespace pldm::hostbmc::utils;
+
+TEST(EntityAssociation, parseEntityMap)
+{
+    EntityMaps entityMaps = parseEntityMap("./entitymap_test.json");
+    EXPECT_EQ(entityMaps.size(), 10);
+}
 
 TEST(EntityAssociation, addObjectPathEntityAssociations1)
 {
@@ -80,8 +88,8 @@
          l5b}};
 
     ObjectPathMaps objPathMap;
-    pldm::hostbmc::utils::updateEntityAssociation(entityAssociations, tree,
-                                                  objPathMap);
+    EntityMaps entityMaps = parseEntityMap("./entitymap_test.json");
+    updateEntityAssociation(entityAssociations, tree, objPathMap, entityMaps);
 
     EXPECT_EQ(objPathMap.size(), retObjectMaps.size());