Included mockito for maven tests. For #66
Remove unneccessary OwningDatabase access
Adds JUnit test for protection class. #66