### Question:
BBInputSetup implements JavaDelegate { protected void mapRouteTableReferences(List<AAIResultWrapper> routeTableReferences, List<RouteTableReference> contrailNetworkRouteTableReferences) { for (AAIResultWrapper routeTableReferenceWrapper : routeTableReferences) { contrailNetworkRouteTableReferences.add(this.mapRouteTableReference(routeTableReferenceWrapper)); } }  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 testMapRouteTableReferences() throws JsonProcessingException { org.onap.aai.domain.yang.RouteTableReference expectedAAI = new org.onap.aai.domain.yang.RouteTableReference(); RouteTableReference expected = new RouteTableReference(); List<RouteTableReference> contrailNetworkRouteTableReferences = new ArrayList<>(); AAIResultWrapper vnfWrapper = new AAIResultWrapper(new AAICommonObjectMapperProvider().getMapper().writeValueAsString(expectedAAI)); doReturn(expected).when(bbInputSetupMapperLayer).mapAAIRouteTableReferenceIntoRouteTableReference( isA(org.onap.aai.domain.yang.RouteTableReference.class)); SPY_bbInputSetup.mapRouteTableReferences(Arrays.asList(new AAIResultWrapper[] {vnfWrapper}), contrailNetworkRouteTableReferences); assertEquals(expected, contrailNetworkRouteTableReferences.get(0)); }