### Question:
SLATemplateCreator { protected static void addProperties(SLATemplate slaTemplate) { PRClient client = new PRClient(); List<Provider> providers = client.getProviders(); STND stndProperties = new STND("ProvidersList"); String value = "{\"ProvidersList\": [ \n "; for(Provider provider : providers) { value = value + "{\"provider-uuid\":\"" + provider.getId() + "\", \"p-slam-url\":\"" + provider.getSlamUrl() + "\"}\n"; } value = value + "]}"; slaTemplate.setPropertyValue(stndProperties, value); }  static SLATemplate generateSLATemplate(OvfDefinition ovf, String ovfURL, SLAApplicationTerms appTerms);  }### Answer:
@Test public void addPropertiesTest() { setupFakeProviderRegistry(); SLATemplate slaTemplate = new SLATemplate(); SLATemplateCreator.addProperties(slaTemplate); STND[] propertiesKeys = slaTemplate.getPropertyKeys(); assertEquals(1, propertiesKeys.length); assertEquals(value, slaTemplate.getPropertyValue(propertiesKeys[0])); }