### Question:
BBInputSetup implements JavaDelegate { protected Customer mapCustomer(String globalCustomerId, String subscriptionServiceType) { org.onap.aai.domain.yang.Customer aaiCustomer = this.bbInputSetupUtils.getAAICustomer(globalCustomerId); org.onap.aai.domain.yang.ServiceSubscription aaiServiceSubscription = this.bbInputSetupUtils.getAAIServiceSubscription(globalCustomerId, subscriptionServiceType); Customer customer = this.mapperLayer.mapAAICustomer(aaiCustomer); ServiceSubscription serviceSubscription = this.mapperLayer.mapAAIServiceSubscription(aaiServiceSubscription); if (serviceSubscription != null) { customer.setServiceSubscription(serviceSubscription); } return customer; }  BBInputSetupUtils getBbInputSetupUtils(); void setCloudInfoFromAAI(CloudInfoFromAAI cloudInfoFromAAI); void setBbInputSetupUtils(BBInputSetupUtils bbInputSetupUtils); BBInputSetupMapperLayer getMapperLayer(); void setMapperLayer(BBInputSetupMapperLayer mapperLayer); @Override void execute(DelegateExecution execution); ServiceInstance getExistingServiceInstance(org.onap.aai.domain.yang.ServiceInstance serviceInstanceAAI);  }### Answer:
@Test public void testMapCustomer() throws Exception { org.onap.aai.domain.yang.Customer customerAAI = new org.onap.aai.domain.yang.Customer(); org.onap.aai.domain.yang.ServiceSubscription serviceSubscriptionAAI = new org.onap.aai.domain.yang.ServiceSubscription(); Customer expected = new Customer(); ServiceSubscription serviceSubscription = new ServiceSubscription(); String globalCustomerId = "globalCustomerId"; String subscriptionServiceType = "subscriptionServiceType"; doReturn(customerAAI).when(SPY_bbInputSetupUtils).getAAICustomer(globalCustomerId); doReturn(serviceSubscriptionAAI).when(SPY_bbInputSetupUtils).getAAIServiceSubscription(globalCustomerId, subscriptionServiceType); doReturn(expected).when(bbInputSetupMapperLayer).mapAAICustomer(isA(org.onap.aai.domain.yang.Customer.class)); doReturn(serviceSubscription).when(bbInputSetupMapperLayer) .mapAAIServiceSubscription(isA(org.onap.aai.domain.yang.ServiceSubscription.class)); Customer actual = SPY_bbInputSetup.mapCustomer(globalCustomerId, subscriptionServiceType); assertEquals(expected, actual); assertEquals(serviceSubscription, expected.getServiceSubscription()); }