Avoid `ClassCastException` reading `confidence` from predictions
`Thread.sleep(time)` uses time in milliseconds instead of seconds
Assert parameters in the right order so the message is more clear
Merge pull request #4 from osroca/master

Fix possible ClassCastException when reading confidence from a prediction object