Fix compilation error

Remove unused import that makes compilation fail. Also replace
deprecated API Date.getYear by Calendar.get(Calendar.YEAR).
Fix test.
Merge pull request #38 from juanluisrp/fix-compilation-error

Fix compilation error