@Test
public void testGetSupplementaryRDFStream() {

    // read bytes from input stream, write to file
    try (InputStream in = annotationDAO.getSupplementaryRDFStream();
         OutputStream out = new FileOutputStream(new File("target", "test_supplemental.rdf"))) {
        getLog().debug("Reading from supplementary RDF data stream...");
        byte[] buffer = new byte[1024];
        int len = in.read(buffer);
        getLog().debug("Read next " + len + " bytes");
        while (len != -1) {
            out.write(buffer, 0, len);
            len = in.read(buffer);
            getLog().debug("Read next " + len + " bytes");
        }
        getLog().debug("Finished reading from RDF stream");
    }
    catch (Exception e) {
        e.printStackTrace();
        fail();
    }
}