### Question:
VrfValidation { protected void aaiRouteTargetValidation(L3Network aaiLocalNetwork) throws VrfBondingServiceException { AAIResultWrapper networkWrapper = new AAIResultWrapper(aaiLocalNetwork); if (networkWrapper.getRelationships().isPresent()) { List<AAIResourceUri> vpnBindingUris = networkWrapper.getRelationships().get().getRelatedUris(Types.VPN_BINDING); if (!vpnBindingUris.isEmpty()) { Optional<org.onap.aai.domain.yang.VpnBinding> vpnBindingOp = bbInputSetupUtils.getAAIResourceDepthOne(vpnBindingUris.get(0)) .asBean(org.onap.aai.domain.yang.VpnBinding.class); if (vpnBindingOp.isPresent()) { org.onap.aai.domain.yang.VpnBinding vpnBinding = vpnBindingOp.get(); if (vpnBinding.getRouteTargets() != null && !vpnBinding.getRouteTargets().getRouteTarget().isEmpty()) { return; } } } } throw new VrfBondingServiceException("The Local Network: " + aaiLocalNetwork.getNetworkId() + " does not have vpn binding and/or RT information"); }  void setBbInputSetupUtils(BBInputSetupUtils bbInputSetupUtils);  }### Answer:
@Test public void testAaiRouteTargetValidation() throws VrfBondingServiceException, JsonParseException, JsonMappingException, IOException { L3Network l3Network = mapper.readValue( new File("src/test/resources/__files/BuildingBlocks/aaiNetworkWrapper.json"), L3Network.class); AAIResultWrapper networkWrapper = new AAIResultWrapper(l3Network); if (networkWrapper.getRelationships().isPresent()) { List<AAIResourceUri> vpnBindingUris = networkWrapper.getRelationships().get().getRelatedUris(Types.VPN_BINDING); VpnBinding vpnBinding = new VpnBinding(); vpnBinding.setRouteTargets(new RouteTargets()); vpnBinding.getRouteTargets().getRouteTarget().add(new RouteTarget()); AAIResultWrapper wrapper = Mockito.mock(AAIResultWrapper.class); doReturn(wrapper).when(bbSetupUtils).getAAIResourceDepthOne(vpnBindingUris.get(0)); doReturn(Optional.of(vpnBinding)).when(wrapper).asBean(VpnBinding.class); ExpectedException.none(); vrfValidation.aaiRouteTargetValidation(l3Network); } }