public void deserializeMultiRangeDescriptorWithFunnyGWID() {
String line = "gw$$id,1,1-4$k6$k8$k10-20";
Descriptor descriptor = new Descriptor(line);
assert descriptor.getTargetID().equals("gw$id") : "Target ID not correctly parsed.";
assert descriptor.getStoreID() == 1 : "Log ID not correctly parsed.";
assert line.equals(descriptor.toRepresentation()) : "Converting the line back to the representation failed.";
String representation = descriptor.getRangeSet().toRepresentation();
assert representation.equals("1-4,6,8,10-20") : "There should be nothing in the diff between the set in the descriptor and the check-set, but we parsed: " + representation;
}
@Test(groups = { UNIT }, expectedExceptions = IllegalArgumentException.class)