Fix unit test Eclipse-deadlock-of-death

The jline console initialization made Eclipse unhappy when
running unit tests. Prevent this by mocking out the jline
interaction in unit tests.

Also fixed some compile warnings.

Bug 5642953

Change-Id: I45bec9ee6e70e6ec6fb7907fa5c7e38e594aba74
8 files changed