add dependency mockito-all for tests (uses MIT license)
Update javadoc about deprecated method
add guard for receiving null values incl. tests
add guard for receiving null value or empty list incl. tests