Testing with HSQLDB and mockito. Getting rid of static methods in order
to use mocks. Smarter activity crawler.