### Question:
ValidationUtility { private static void validatePOLICY(InputStream content) throws ValidationException { logger.debug("Validating POLICY datastream"); policyParser.copy().parse(content, true); logger.debug("POLICY datastream is valid"); }  static void validateURL(String url, String controlGroup); static void setPolicyParser(PolicyParser parser); static void setFeslPolicyParser(PolicyParser parser); static void setValidateFeslPolicy(boolean validate); static void validateReservedDatastreams(DOReader reader); static void validateReservedDatastream(PID pid,
                                                  String dsId,
                                                  Datastream ds);  }### Answer:
@Test(expected=NullPointerException.class) public void testValidatePolicyParserNotSet() throws IOException, SAXException, ValidationException { validatePolicy(null, POLICY_GOODENOUGH); }
@Test(expected=ValidationException.class) public void testValidatePolicyBad() throws IOException, SAXException, ValidationException { validatePolicy(new MockPolicyParser(), POLICY_QUESTIONABLE); }
@Test public void testValidatePolicyGood() throws IOException, SAXException, ValidationException { validatePolicy(new MockPolicyParser(), POLICY_GOODENOUGH); }