### Question:
VrfValidation { protected void aaiVpnBindingValidation(String relatedVpnId, org.onap.aai.domain.yang.VpnBinding aaiVpnBinding) throws VrfBondingServiceException { if (aaiVpnBinding == null) { throw new VrfBondingServiceException("The infrastructure vpn " + relatedVpnId + " does not exist in A&AI."); } else if (aaiVpnBinding.getVpnType() != null && !aaiVpnBinding.getVpnType().equalsIgnoreCase("SERVICE-INFRASTRUCTURE")) { throw new VrfBondingServiceException( "VpnBinding: " + relatedVpnId + " does not have a vpn type of SERVICE-INFRASTRUCTURE."); } }  void setBbInputSetupUtils(BBInputSetupUtils bbInputSetupUtils);  }### Answer:
@Test public void testAaiVpnBindingValidation() throws VrfBondingServiceException { org.onap.aai.domain.yang.VpnBinding aaiVpnBinding = new org.onap.aai.domain.yang.VpnBinding(); aaiVpnBinding.setVpnType("SERVICE-INFRASTRUCTURE"); ExpectedException.none(); vrfValidation.aaiVpnBindingValidation("test-vpn", aaiVpnBinding); }
@Test public void testAaiVpnBindingValidationVpnBindingIsNull() throws VrfBondingServiceException { exceptionRule.expect(VrfBondingServiceException.class); exceptionRule.expectMessage("The infrastructure vpn test-vpn does not exist in A&AI."); vrfValidation.aaiVpnBindingValidation("test-vpn", null); }