Be careful who you associate yourself with; you just might have to fend for them in court…

In an interesting turn of events, Justin Bieber‘s on-and-off-again boo thang Selena Gomez is required to testify in Bieber’s court hearing, according to reports. The only reason Gomez has show up is because she may know Justin’s motive behind allegedly beating the paparazzi photographer who’s suing him.

The pap says Selena was right there, so they want her under oath, giving a blow-by-blow. But we’re told even more important is her pillow talk with Justin — revealing his bitter feelings and short trigger when it comes to paparazzi.