Dark soliton past a finite-size obstacle