For ENG-6482, add new JUnit test.