LDAP-257: Upgraded all core unit tests to JUnit 4 style, and migrated to Mockito.