IField spanField = new ListField<Span>(new ArrayList<Span>(spans));
List<IField> fields = new ArrayList<IField>(data.get(0).getFields());
fields.add(spanField);
expectedResults.add(new DataTuple(spanSchema, fields.toArray(new IField[fields.size()])));
spans.clear();
<BUG>spans.add(new Span(RegexTestConstantsText.CONTENT, 87, 92, regex, "tests"));
</BUG>
spanField = new ListField<Span>(new ArrayList<Span>(spans));
fields = new ArrayList<IField>(data.get(2).getFields());
fields.add(spanField);

IField spanField = new ListField<Span>(new ArrayList<Span>(spans));
List<IField> fields = new ArrayList<IField>(data.get(1).getFields());
fields.add(spanField);
expectedResults.add(new DataTuple(spanSchema, fields.toArray(new IField[fields.size()])));
spans.clear();
spans.add(new Span(RegexTestConstantsCorp.URL, 0, 32, query, "https://www.microsoft.com/en-us/"));
spanField = new ListField<Span>(new ArrayList<Span>(spans));
fields = new ArrayList<IField>(data.get(2).getFields());
fields.add(spanField);
