MoreItemsJsonParser: Move some code into the test.

Because it is only used there.
Use of interface types instead of subtypes.
Remove unnecessary imports.
Make a member field final.