adding test and correcting empty request scenario
Merge pull request #4 from albertodepaola/java-spring

adding test and correcting empty request scenario