rebasing pr #13 after its partial merge to sonatype:master

Now it seems to be straightforward: 
* added new test case
* added resource file, which is used by the test case