}
public void testValidateValidRelsInt() throws Exception {
pid = PID.getInstance("demo:888");
InputStream in = new ByteArrayInputStream(RELS_INT);
RelsValidator validator = new RelsValidator();
validator.validate(pid, "RELS-INT", in);
}
public void testValidateInvalidRelsExt() throws Exception {
pid = PID.getInstance("demo:888");
// use RELS-INT sample as a RELS-EXT datastream
InputStream in = new ByteArrayInputStream(RELS_INT);