### Question:
Annotate { public static List<Annotation> readLabelFile(final Reader fileReader) throws IOException { List<Annotation> annotations = new ArrayList<Annotation>(); BufferedReader reader = new BufferedReader(fileReader); String line; while ((line = reader.readLine()) != null) { String[] parts = line.split("\t"); String cidr = parts[0]; String label = parts[1]; String sublabel = parts[2]; Annotation a = new Annotation(new CIDR(cidr), label, sublabel); annotations.add(a); } return annotations; } private  Annotate(); static List<Annotation> readLabelFile(final Reader fileReader);  }### Answer:
@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()); }