ENG-5021: add junit tests.