{
mockText.getHeight();
control( mockText ).setReturnValue( 7 );
mockText.getLine( 5 );
control( mockText ).setReturnValue( "this is my test" );
mockView.update( new Coordinate( 3, 5 ) );
mockView.update( new Coordinate( 3, 5 ) );
replay();
selection.extend( 3, 5 );
selection.clear();
reset();
mockText.getHeight();
control( mockText ).setReturnValue( 7 );
mockText.getLine( 0 );
control( mockText ).setReturnValue( "this is my test" );
mockView.update( new Coordinate( 0, 0 ) );
replay();
selection.extend( 0, 0 );
reset();
mockText.remove( new Coordinate( 0, 0 ), new Coordinate( 3, 5 ) );
mockView.update( new Coordinate( 0, 0 ) );
replay();
selection.delete();
assertTrue( selection.isEmpty() );
}