MULE-6612: Core exports unnecessary transient dependency to junit
(cherry picked from commit f39fbe217d1a3198580f7dd0af08873f36406d71)

add missing junit test dependencies
(cherry picked from commit a5886532a68aff6b136a9f859496962aeaef3d45)