### Question:
SLATemplateCreator { protected static void addInterfaceDclr(SLATemplate slaTemplate, OvfDefinition ovf, String ovfURL) { VirtualSystem[] virtualSystemArray = ovf.getVirtualSystemCollection().getVirtualSystemArray(); InterfaceDeclr[] ifaces = new InterfaceDeclr[virtualSystemArray.length]; for(int i = 0; i < virtualSystemArray.length; i++) { ID id = new ID("OVF-Item-" + virtualSystemArray[i].getId()); ID idProvider = new ID("AsceticProvider"); ResourceType resType=new ResourceType("OVFAppliance"); InterfaceDeclr interfaceDeclaration = new InterfaceDeclr(id, idProvider, resType); interfaceDeclaration.setPropertyValue(new STND("OVF_URL"), ovfURL); logger.info("OVF_URL: " + ovfURL); STND protocol = new STND("http: Endpoint[] endPoints = new Endpoint[1]; ID idEndPoint = new ID(virtualSystemArray[i].getId() + "-VM-Type"); Endpoint endPoint = new Endpoint(idEndPoint, protocol); endPoint.setLocation(new UUID("VM-Manager ID")); endPoint.setPropertyValue(new STND("OVF_VirtualSystem_ID"), virtualSystemArray[i].getId()); endPoints[0] = endPoint; interfaceDeclaration.setEndpoints(endPoints); ifaces[i] = interfaceDeclaration; } slaTemplate.setInterfaceDeclrs(ifaces); }  static SLATemplate generateSLATemplate(OvfDefinition ovf, String ovfURL, SLAApplicationTerms appTerms);  }### Answer:
@Test public void verifyAddInterfaceDclr() { SLATemplate slaTemplate = new SLATemplate(); OvfDefinition ovfDefinition = OVFUtils.getOvfDefinition(threeTierWebAppOvfString); SLATemplateCreator.addInterfaceDclr(slaTemplate, ovfDefinition, "OVF_URL"); System.out.println(slaTemplate); }