BIOLayeredSequence seq = new BIOLayeredSequence(input.size());
seq.addSpanLayer("x", input);
List<Range> ranges = seq.getSpans("x");
assertEquals(2, ranges.size());
assertEquals(new Range(1,2), ranges.get(0));
assertEquals(new Range(5,2), ranges.get(1));
ranges = new ArrayList<Range>(seq.getSpans("x", "X"));
assertEquals(1, ranges.size());
assertEquals(new Range(1,2), ranges.get(0));
ranges = new ArrayList<Range>(seq.getSpans("x", "Y"));
assertEquals(1, ranges.size());
assertEquals(new Range(5,2), ranges.get(0));
ranges = new ArrayList<Range>(seq.getSpans("x", "Z"));
assertEquals(0, ranges.size());
}