Add Mockito + Powermock dependency to core/pom.xml

Patch provided

There are some obsolete commits included (no files are changed), but I could not manage to squash them.