### Question:
MsoYamlEditorWithEnvt { public synchronized Set<HeatTemplateParam> getParameterList() { Set<HeatTemplateParam> paramSet = new HashSet<>(); @SuppressWarnings("unchecked") Map<String, Object> resourceMap = (Map<String, Object>) yml.get("parameters"); for (Entry<String, Object> stringObjectEntry : resourceMap.entrySet()) { HeatTemplateParam param = new HeatTemplateParam(); Entry<String, Object> pair = stringObjectEntry; @SuppressWarnings("unchecked") Map<String, String> resourceEntry = (Map<String, String>) pair.getValue(); String value = null; try { value = resourceEntry.get("default"); } catch (ClassCastException cce) { logger.debug(EXCEPTION, cce); value = "300"; } param.setParamName((String) pair.getKey()); if (value != null) { param.setRequired(false); } else { param.setRequired(true); } value = resourceEntry.get("type"); param.setParamType(value); paramSet.add(param); } return paramSet; } MsoYamlEditorWithEnvt();  MsoYamlEditorWithEnvt(byte[] b); @SuppressWarnings("unchecked") synchronized Set<MsoHeatEnvironmentParameter> getParameterListFromEnvt(); synchronized Set<MsoHeatEnvironmentResource> getResourceListFromEnvt(); synchronized Set<HeatTemplateParam> getParameterList(); static final String EXCEPTION; }### Answer:
@Test public void getParameterListTest() throws JsonParseException, JsonMappingException, IOException { yaml = new MsoYamlEditorWithEnvt(RAW_ENTRY_WITH_NO_RESOURCE_REGISTRY.getBytes()); MsoHeatEnvironmentParameter expectedHeatParam = mapper.readValue( new File(RESOURCE_PATH + "HeatEnvironmentParameter.json"), MsoHeatEnvironmentParameter.class); Set<MsoHeatEnvironmentParameter> heatEnvironmentSet = yaml.getParameterListFromEnvt(); for (MsoHeatEnvironmentParameter heatEnvironment : heatEnvironmentSet) { assertThat(heatEnvironment, sameBeanAs(expectedHeatParam)); } }