### Question:
VrfValidation { protected void aaiNetworkValidation(String relatedNetworkid, org.onap.aai.domain.yang.L3Network aaiLocalNetwork) throws VrfBondingServiceException { if (aaiLocalNetwork == null) { throw new VrfBondingServiceException("The local network " + relatedNetworkid + " does not exist in A&AI."); } }  void setBbInputSetupUtils(BBInputSetupUtils bbInputSetupUtils);  }### Answer:
@Test public void testAaiNetworkValidation() throws VrfBondingServiceException { org.onap.aai.domain.yang.L3Network aaiLocalNetwork = new org.onap.aai.domain.yang.L3Network(); aaiLocalNetwork.setNetworkId("test-network"); ExpectedException.none(); vrfValidation.aaiNetworkValidation("test-network", aaiLocalNetwork); }
@Test public void testAaiNetworkValidationNetworkIsNull() throws VrfBondingServiceException { exceptionRule.expect(VrfBondingServiceException.class); exceptionRule.expectMessage("The local network test-network does not exist in A&AI."); vrfValidation.aaiNetworkValidation("test-network", null); }