Add log level all to the integration tests
Replace the getConnection method with closeConnection
Test Thread management
Avoid code repetition
Enable reentrant thread management

This should avoid problems where an already locked thread could be unlocked by mistake
Use @Tested and initialise the mocks to null
Use @Tested when possible and force init to null
Use @SuppressWarnings("unused") on unused @Mocked
Fix imports and indentation
Apply same tests from log4j to log4j2
Fix style issues