    @Test
    public void testReadLabelFile() throws IOException {

        URL url = AnnotateTest.class.getResource("/test-labels.txt");
        Reader reader = new InputStreamReader(url.openStream());
        List<Annotation> annotations = Annotate.readLabelFile(reader);

        Annotation a1 = annotations.get(0);
        assertEquals(new CIDR("0.0.0.0/8"), a1.getCidr());
        assertEquals("IANA - Local Identification", a1.getLabel());
        assertEquals("0.0.0.0/8", a1.getSublabel());

        Annotation a2 = annotations.get(1);
        assertEquals(new CIDR("240.0.0.0/4"), a2.getCidr());
        assertEquals("Future use", a2.getLabel());
        assertEquals("240.0.0.0/4", a2.getSublabel());
    }