### Question:
GeneralTopologyObjectMapper { public GenericResourceApiVnfinformationVnfInformation buildVnfInformation(GenericVnf vnf, ServiceInstance serviceInstance, boolean includeModelInformation) { GenericResourceApiVnfinformationVnfInformation vnfInformation = new GenericResourceApiVnfinformationVnfInformation(); if (includeModelInformation && vnf.getModelInfoGenericVnf() != null) { GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = new GenericResourceApiOnapmodelinformationOnapModelInformation(); onapModelInformation.setModelInvariantUuid(vnf.getModelInfoGenericVnf().getModelInvariantUuid()); onapModelInformation.setModelName(vnf.getModelInfoGenericVnf().getModelName()); onapModelInformation.setModelVersion(vnf.getModelInfoGenericVnf().getModelVersion()); onapModelInformation.setModelUuid(vnf.getModelInfoGenericVnf().getModelUuid()); onapModelInformation.setModelCustomizationUuid(vnf.getModelInfoGenericVnf().getModelCustomizationUuid()); vnfInformation.setOnapModelInformation(onapModelInformation); } vnfInformation.setVnfId(vnf.getVnfId()); vnfInformation.setVnfType(vnf.getVnfType()); vnfInformation.setVnfName(vnf.getVnfName()); return vnfInformation; }  GenericResourceApiRequestinformationRequestInformation buildGenericResourceApiRequestinformationRequestInformation(
            String msoReqId, GenericResourceApiRequestActionEnumeration requestAction); GenericResourceApiServiceinformationServiceInformation buildServiceInformation(
            ServiceInstance serviceInstance, RequestContext requestContext, Customer customer,
            boolean includeModelInformation); GenericResourceApiNetworkinformationNetworkInformation buildNetworkInformation(L3Network network); GenericResourceApiVnfinformationVnfInformation buildVnfInformation(GenericVnf vnf,
            ServiceInstance serviceInstance, boolean includeModelInformation); GenericResourceApiVfmoduleinformationVfModuleInformation buildVfModuleInformation(VfModule vfModule,
            GenericVnf vnf, ServiceInstance serviceInstance, RequestContext requestContext,
            boolean includeModelInformation); GenericResourceApiSdncrequestheaderSdncRequestHeader buildSdncRequestHeader(SDNCSvcAction svcAction,
            String sdncReqId); GenericResourceApiSdncrequestheaderSdncRequestHeader buildSdncRequestHeader(SDNCSvcAction svcAction,
            String sdncReqId, String callbackUrl); GenericResourceApiConfigurationinformationConfigurationInformation buildConfigurationInformation(
            Configuration configuration, boolean includeModelInformation); GenericResourceApiGcrequestinputGcRequestInput buildGcRequestInformation(GenericVnf vnf,
            GenericResourceApiParam genericResourceApiParam); String mapUserParamValue(Object value);  }### Answer:
@Test public void buildVnfInformationTest_withNullData() { GenericVnf vnf = new GenericVnf(); vnf.setVnfId("TestVnfId"); ServiceInstance serviceInstance = new ServiceInstance(); serviceInstance.setServiceInstanceId("serviceInstanceId"); GenericResourceApiVnfinformationVnfInformation gcRequestInput = genObjMapper.buildVnfInformation(vnf, serviceInstance, true); assertNotNull(gcRequestInput); assertNull(vnf.getModelInfoGenericVnf()); assertNull(gcRequestInput.getOnapModelInformation()); assertEquals(vnf.getVnfId(), gcRequestInput.getVnfId()); assertNotNull(gcRequestInput.getVnfId()); }