[#3119] Upgrade to JUnit 4.11 and omit using deprecated junit.framework.Assert in tests