### Question:
Annotation { public String getSublabel() { if (sublabel.equals("prefix")) { if (cidr != null) { return cidr.getText(); } else { return ""; } } else { return sublabel; } } Annotation(CIDR cidr, String label, String sublabel); CIDR getCidr(); String getLabel(); String getSublabel();  }### Answer:
@Test public void testGetSublabel() { Annotation a = new Annotation(null, "", null); assertEquals("", a.getSublabel()); a = new Annotation(null, "", ""); assertEquals("", a.getSublabel()); a = new Annotation(null, "", "prefix"); assertEquals("", a.getSublabel()); a = new Annotation(new CIDR("1.0.0.0/8"), "", "prefix"); assertEquals("1.0.0.0/8", a.getSublabel()); a = new Annotation(null, "", "asdf"); assertEquals("asdf", a.getSublabel()); }