extract mock setup methods

Pulls the common code for Version specific tests into a mixing
class, reducing code duplication significantly.

Change-Id: I4136b866700a74aa93e38363fdcb29fe6c5ed65c
Merge "extract mock setup methods"