### Question:
VrfValidation { protected void vrfServiceValidation(org.onap.so.db.catalog.beans.Service service) throws VrfBondingServiceException { if (!"BONDING".equalsIgnoreCase(service.getServiceType()) || !"INFRASTRUCTURE-VPN".equalsIgnoreCase(service.getServiceRole())) { throw new VrfBondingServiceException("Service: " + service.getModelName() + " does not have service type of BONDING and does not have service role of INFRASTRUCTURE-VPN"); } }  void setBbInputSetupUtils(BBInputSetupUtils bbInputSetupUtils);  }### Answer:
@Test public void testVrfServiceValidation() throws VrfBondingServiceException { Service service = new Service(); service.setModelName("modelName"); service.setServiceType("BONDING"); service.setServiceRole("VPN"); exceptionRule.expect(VrfBondingServiceException.class); exceptionRule.expectMessage( "Service: modelName does not have service type of BONDING and does not have service role of INFRASTRUCTURE-VPN"); vrfValidation.vrfServiceValidation(service); service.setServiceType("BOND"); service.setServiceRole("INFRASTRUCTURE-VPN"); exceptionRule.expect(VrfBondingServiceException.class); exceptionRule.expectMessage( "Service: modelName does not have service type of BONDING and does not have service role of INFRASTRUCTURE-VPN"); vrfValidation.vrfServiceValidation(service); service.setServiceType("BONDING"); service.setServiceRole("INFRASTRUCTURE-VPN"); ExpectedException.none(); vrfValidation.vrfServiceValidation(service); }