### Question:
GeneralTopologyObjectMapper { public GenericResourceApiConfigurationinformationConfigurationInformation buildConfigurationInformation( Configuration configuration, boolean includeModelInformation) { GenericResourceApiConfigurationinformationConfigurationInformation configurationInformation = new GenericResourceApiConfigurationinformationConfigurationInformation(); configurationInformation.setConfigurationId(configuration.getConfigurationId()); configurationInformation.setConfigurationName(configuration.getConfigurationName()); configurationInformation.setConfigurationType(configuration.getConfigurationType()); if (includeModelInformation) { GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = new GenericResourceApiOnapmodelinformationOnapModelInformation(); onapModelInformation.setModelInvariantUuid(configuration.getModelInfoConfiguration().getModelInvariantId()); onapModelInformation.setModelUuid(configuration.getModelInfoConfiguration().getModelVersionId()); onapModelInformation .setModelCustomizationUuid(configuration.getModelInfoConfiguration().getModelCustomizationId()); configurationInformation.setOnapModelInformation(onapModelInformation); } return configurationInformation; }  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 buildConfigurationInformationTest_excludesOnapModelInfo() { Configuration configuration = new Configuration(); configuration.setConfigurationId("testConfigurationId"); configuration.setConfigurationType("VNR"); configuration.setConfigurationName("VNRCONF"); GenericResourceApiConfigurationinformationConfigurationInformation configurationInformation = genObjMapper.buildConfigurationInformation(configuration, false); assertEquals(configuration.getConfigurationId(), configurationInformation.getConfigurationId()); assertEquals(configuration.getConfigurationType(), configurationInformation.getConfigurationType()); assertEquals(configuration.getConfigurationName(), configurationInformation.getConfigurationName()); assertNull(configurationInformation.getOnapModelInformation()); }
@Test public void buildConfigurationInformationTest_includesOnapModelInfo() { Configuration configuration = new Configuration(); configuration.setConfigurationId("testConfigurationId"); configuration.setConfigurationType("VNR"); configuration.setConfigurationName("VNRCONF"); ModelInfoConfiguration modelInfoConfiguration = new ModelInfoConfiguration(); modelInfoConfiguration.setModelVersionId("modelVersionId"); modelInfoConfiguration.setModelInvariantId("modelInvariantId"); modelInfoConfiguration.setModelCustomizationId("modelCustomizationId"); configuration.setModelInfoConfiguration(modelInfoConfiguration); GenericResourceApiConfigurationinformationConfigurationInformation configurationInformation = genObjMapper.buildConfigurationInformation(configuration, true); assertEquals(configuration.getConfigurationId(), configurationInformation.getConfigurationId()); assertEquals(configuration.getConfigurationType(), configurationInformation.getConfigurationType()); assertEquals(configuration.getConfigurationName(), configurationInformation.getConfigurationName()); assertNotNull(configurationInformation.getOnapModelInformation()); assertEquals(configuration.getModelInfoConfiguration().getModelVersionId(), configurationInformation.getOnapModelInformation().getModelUuid()); assertEquals(configuration.getModelInfoConfiguration().getModelInvariantId(), configurationInformation.getOnapModelInformation().getModelInvariantUuid()); assertEquals(configuration.getModelInfoConfiguration().getModelCustomizationId(), configurationInformation.getOnapModelInformation().getModelCustomizationUuid()); }