### Question:
MetastoreClientUtils { public static <K, V> Map<K, V> deepCopyMap(Map<K, V> originalMap) { Map<K, V> deepCopy = Maps.newHashMap(); if (originalMap == null) { return deepCopy; } for (Map.Entry<K, V> entry : originalMap.entrySet()) { deepCopy.put(entry.getKey(), entry.getValue()); } return deepCopy; } private  MetastoreClientUtils(); static boolean makeDirs(Warehouse wh, Path path); static void validateTableObject(Table table, Configuration conf); static void validateGlueTable(com.amazonaws.services.glue.model.Table table); static Map<K, V> deepCopyMap(Map<K, V> originalMap); static boolean isExternalTable(org.apache.hadoop.hive.metastore.api.Table table); static String getCatalogId(Configuration conf);  }### Answer:
@Test public void testDeepCopy() throws Exception { Map<String, String> orig = ImmutableMap.of("key", "val"); Map<String, String> deepCopy = MetastoreClientUtils.deepCopyMap(orig); assertNotSame(deepCopy, orig); assertEquals(deepCopy, orig); }