### Question:
BBInputSetup implements JavaDelegate { protected Customer getCustomerFromRequest(RequestDetails requestDetails) { org.onap.aai.domain.yang.Customer aaiCustomer = bbInputSetupUtils.getAAICustomer(requestDetails.getSubscriberInfo().getGlobalSubscriberId()); if (aaiCustomer != null) { return mapperLayer.mapAAICustomer(aaiCustomer); } else { return null; } }  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 testGetCustomer() throws IOException { Customer expected = new Customer(); RequestDetails requestDetails = new RequestDetails(); SubscriberInfo subscriberInfo = new SubscriberInfo(); subscriberInfo.setGlobalSubscriberId("globalSubscriberId"); requestDetails.setSubscriberInfo(subscriberInfo); org.onap.aai.domain.yang.Customer aaiCustomer = new org.onap.aai.domain.yang.Customer(); doReturn(aaiCustomer).when(SPY_bbInputSetupUtils) .getAAICustomer(requestDetails.getSubscriberInfo().getGlobalSubscriberId()); doReturn(expected).when(bbInputSetupMapperLayer).mapAAICustomer(aaiCustomer); Customer actual = SPY_bbInputSetup.getCustomerFromRequest(requestDetails); assertThat(actual, sameBeanAs(expected)); }