8179317: [TESTBUG] rewrite runtime shell tests in java

Converted shell tests to Java

Reviewed-by: dholmes, iignatyev, lmesnik
18 files changed