if (answer.add(new ComparableResourceRecord("1.1.1.1"))) {
fail("Duplicate record accepted");
}
ComparableResourceRecord[] records = new ComparableResourceRecord[3];
answer.toArray(records);
assertEquals(records[0].getValue(), "1.1.1.1");
assertEquals(records[1].getValue(), "2.2.2.2");
assertEquals(records[2].getValue(), "3.3.3.3");
}