Merge "Refactor code incompatible with Mockito 2.7.13" am: 2a3a4f81f9
am: 17e5a2d851

Change-Id: I91f5108861ed4eb47d9fae13860e79babf0f4bf9