Merge "Adjust testMutate to not rely on undefined behavior" into qt-dev am: 764c784fa2 am: 6e742f83cb am: aa61c4a55b

Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/14885512

Change-Id: I3dc0e24134472cde55d2601c987708e8f590e574