243d2a5a44
Move common patterns out into a helper class and refactor tests to use that base helper. Change-Id: Icd2512da3902d8dcf6d28af3d09fc4ee0bf1f33a