### Question:
BBInputSetup implements JavaDelegate { protected ServiceProxy getServiceProxy(Service service) { if (!service.getServiceProxyCustomizations().isEmpty()) { ServiceProxyResourceCustomization serviceProxyCatalog = getServiceProxyResourceCustomization(service); ServiceProxy serviceProxy = new ServiceProxy(); serviceProxy.setModelInfoServiceProxy( mapperLayer.mapServiceProxyCustomizationToServiceProxy(serviceProxyCatalog)); Service sourceService = serviceProxyCatalog.getSourceService(); ServiceInstance sourceServiceShell = new ServiceInstance(); sourceServiceShell .setModelInfoServiceInstance(mapperLayer.mapCatalogServiceIntoServiceInstance(sourceService)); serviceProxy.setServiceInstance(sourceServiceShell); serviceProxy.setType(sourceService.getServiceType()); return serviceProxy; } 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 testGetServiceProxy() { ServiceProxy expected = new ServiceProxy(); expected.setType("TRANSPORT"); expected.setModelInfoServiceProxy(new ModelInfoServiceProxy()); expected.getModelInfoServiceProxy().setModelUuid("modelUUID"); expected.getModelInfoServiceProxy().setModelInstanceName("modelInstanceName"); expected.setServiceInstance(new ServiceInstance()); expected.getServiceInstance().setModelInfoServiceInstance(new ModelInfoServiceInstance()); expected.getServiceInstance().getModelInfoServiceInstance().setModelUuid("modelUUID"); expected.getServiceInstance().getModelInfoServiceInstance().setServiceType("TRANSPORT"); Service service = new Service(); ServiceProxyResourceCustomization serviceProxyCatalog = new ServiceProxyResourceCustomization(); serviceProxyCatalog.setModelCustomizationUUID("modelCustomizationUUID"); serviceProxyCatalog.setModelInstanceName("modelInstanceName"); Service sourceService = new Service(); sourceService.setModelUUID("modelUUID"); sourceService.setServiceType("TRANSPORT"); serviceProxyCatalog.setSourceService(sourceService); service.setServiceProxyCustomizations(new ArrayList<ServiceProxyResourceCustomization>()); service.getServiceProxyCustomizations().add(serviceProxyCatalog); ServiceProxy actual = SPY_bbInputSetup.getServiceProxy(service); assertThat(actual, sameBeanAs(expected)); }