question: private void checkContains ( Spanned text , String [ ] spans , String spanName , int start , int end ) throws Exception { for ( String i : spans ) { if ( i . equals ( spanName ) ) { assertEquals ( start , text . getSpanStart ( i ) ) ; assertEquals ( end , text . getSpanEnd ( i ) ) ; return ; } } fail ( ) ; }
target:  Fail unless text+spans contains a span 'spanName' with the given start and end. 