Added junit and mockito. Replaced some spock tests with junit tests.