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