### Question:
Span implements Cloneable, Serializable, Comparable<Span> { @Override public String toString() { return toString(this); } Span();  Span(int first, int last);  Span(Span span); String substring(String text); String substring(String text, int offset); String substringLimit(String whole); boolean overlaps(Span s); static boolean overlap(Iterable<? extends Span> spans); static Span coveringSpan(Span... spans); static Span coveringSpan(Iterable<? extends Span> spans); boolean overlaps(int s, int e); static boolean overlaps(int s1, int e1, int s2, int e2); static boolean contains(int s1, int e1, int s2, int e2); boolean contains(Span s); boolean contains(int ndx); boolean contains(int otherStart, int otherEnd); boolean properContains(Span s); boolean crosses(Span s); @Override String toString(); static String toString(Span span); static Span fromString(String str); @Override int hashCode(); @Override boolean equals(Object obj); static int sumLength(Span s1, Span s2); int distanceTo(Span s); boolean fix(int minStart, int maxEnd); static String replaceAll(String source, Map<Span,String> replacements); void addOffset(int offset); int whichSegment(List<? extends Span> segments); double snapToSegmentation(List<? extends Span> toks); static Span toSegmentSpan(Span charSpan, List<? extends Span> segments); static Span toSegmentSpan(Span charSpan, List<? extends Span> segments, boolean forceNonEmpty); static List<Span> toSegmentSpans(Iterable<? extends Span> spans, List<? extends Span> segments); static ArrayList<Span> complement(List<Span> spans, int from, int to); static int firstStart(Iterable<? extends Span> spans); static int lastEnd(Iterable<? extends Span> spans); static String compressSpace(String source, Collection<Span> spans); static String highlight(String source, Span span, String begin, String end); static String highlight(String source, Span span, String begin, String end, int offset); static String highlightAll(String source, List<? extends Span> spans, String begin, String end); static String highlightAll(String source, List<? extends Span> spans, String begin, String end, int offset); static String highlightAll(String source, List<X> spans, Function<T,Pair<String,String>> beginEndMaker); static String highlightAll(String source, List<X> spans, Function<T,Pair<String,String>> beginEndMaker, int offset); Pair<String,List<Span>> inverseHighlight(String highlighted, String start, String end); boolean isValid(String str); Span clone(); int overlapLength(int otherStart, int otherEnd); int overlapLength(Span other); double overlapPercent(int otherStart, int otherEnd); double overlapPercent(Span other); int length(); int compareTo(Span s); static final char INTERVAL_SEP_SYMBOL; public int start; }### Answer:
@Test public void testToString() { Span s1 = new Span( 3 , 9 ); assertEquals("[3,9)", s1.toString()); }