unit-test for Connection.createQueryWithParams

Mockito rocks!
code analyst checks
fix compilation warnings
logger must be static
cleanup
Merge branch 'dimzon-master'

Conflicts:
	core/pom.xml