MsModelUtils { public MsModelUtils() { } MsModelUtils();  MsModelUtils(CommonClassDao commonClassDao);  MsModelUtils(String onap, String policy); Map<String, MsAttributeObject> processEpackage(String file, ModelType model); void getAttributes(String className, String dependency, EPackage root); String checkDefultValue(String defultValue); String checkRequiredPattern(int upper, int lower); JSONObject buildJavaObject(Map<String, String> map); Map<String, String> getRefAttributeList(EPackage root, String className, String superClass); boolean isRequiredAttribute(EObject obj, String className); Map<String, String> getAttributeList(EPackage root, String className, String superClass); String arrayCheck(int upperBound); List<String> getDependencyList(EClassifier eclassifier); Map<String, String> buildSubList(Map<String, String> subClassAttributes,
                    Map<String, MsAttributeObject> classMap, String className); Map<String, Map<String, String>> recursiveReference(Map<String, MsAttributeObject> classMap,
                    String className); String createJson(Map<String, MsAttributeObject> classMap, String className); Map<String, String> getRefclass(Map<String, MsAttributeObject> classMap, String className); String createSubAttributes(List<String> dependency, Map<String, MsAttributeObject> classMap,
                    String modelName); List<String> getFullDependencyList(List<String> dependency, Map<String, MsAttributeObject> classMap); String parseTosca(String fileName); Map<String, String> load(String fileName); int stringBetweenDots(String str); void stringBetweenDotsForDataFields(String str);  }
@Test public void testMsModelUtils() { HashMap<String, MsAttributeObject> classMap = new HashMap<>(); ClassLoader classLoader = getClass().getClassLoader(); File file = new File(classLoader.getResource("DKaTVESPolicy-v1802.xmi").getFile()); MsModelUtils utils = new MsModelUtils("http: Map<String, MsAttributeObject> tempMap = utils.processEpackage(file.getAbsolutePath().toString(), ModelType.XMI); classMap.putAll(tempMap); MsAttributeObject mainClass = classMap.get("StandardDeviationThreshold"); String dependTemp = StringUtils.replaceEach(mainClass.getDependency(), new String[] { "[", "]", " " }, new String[] { "", "", "" }); List<String> dependency = new ArrayList<String>(Arrays.asList(dependTemp.split(","))); dependency = utils.getFullDependencyList(dependency, classMap); String subAttribute = utils.createSubAttributes(dependency, classMap, "StandardDeviationThreshold"); assertTrue(subAttribute != null); }