### Question:
VnfResource extends Resource { public VnfResource() { resourceType = ResourceType.VNF; setResourceId(UUID.randomUUID().toString()); } VnfResource(); List<ModuleResource> getVfModules(); void setModules(List<ModuleResource> moduleResources); String getVnfHostname(); void setVnfHostname(String vnfHostname); @Deprecated void setVnfType(String vnfType); String getVnfType(); String getNfFunction(); void setNfFunction(String nfFunction); String getNfType(); void setNfType(String nfType); String getNfRole(); void setNfRole(String nfRole); String getNfNamingCode(); void setNfNamingCode(String nfNamingCode); String getMultiStageDesign(); void setMultiStageDesign(String multiStageDesign); String getOrchestrationStatus(); void setOrchestrationStatus(String orchestrationStatus); String getResourceInput(); void setResourceInput(String resourceInput); List<GroupResource> getGroups(); void setGroups(List<GroupResource> groups); String getGroupOrder(); void setGroupOrder(String groupOrder); @JsonIgnore List<ModuleResource> getAllVfModuleObjects(); @JsonIgnore String getAllVfModulesJson(); void addVfModule(ModuleResource moduleResource); void constructVnfType(String modelName);  }### Answer:
@Test public void testVnfResource() { vnf.setModules(moduleResources); vnf.setVnfHostname("vnfHostname"); vnf.setVnfType("vnfType"); vnf.setNfFunction("nfFunction"); vnf.setNfType("nfType"); vnf.setNfRole("nfRole"); vnf.setNfNamingCode("nfNamingCode"); vnf.setMultiStageDesign("multiStageDesign"); assertEquals(vnf.getVfModules(), moduleResources); assertEquals(vnf.getVnfHostname(), "vnfHostname"); assertEquals(vnf.getVnfType(), "vnfType"); assertEquals(vnf.getNfFunction(), "nfFunction"); assertEquals(vnf.getNfType(), "nfType"); assertEquals(vnf.getNfRole(), "nfRole"); assertEquals(vnf.getNfNamingCode(), "nfNamingCode"); assertEquals(vnf.getMultiStageDesign(), "multiStageDesign"); }