[BACKLOG-452] -- refactored getJobState and added unit tests for it
Merge pull request #1838 from krivera-pentaho/oemdoc-dev

[BACKLOG-452] -- refactored getJobState and added unit tests for it