diff --git a/services/tests/servicestests/src/com/android/server/locksettings/RebootEscrowDataTest.java b/services/tests/servicestests/src/com/android/server/locksettings/RebootEscrowDataTest.java index b5c6d0425bb1e..46f43e7af596a 100644 --- a/services/tests/servicestests/src/com/android/server/locksettings/RebootEscrowDataTest.java +++ b/services/tests/servicestests/src/com/android/server/locksettings/RebootEscrowDataTest.java @@ -75,7 +75,7 @@ public class RebootEscrowDataTest { assertThat(actual.getSpVersion(), is(expected.getSpVersion())); assertThat(actual.getIv(), is(expected.getIv())); - assertThat(actual.getKey(), is(expected.getKey())); + assertThat(actual.getKey().getKeyBytes(), is(expected.getKey().getKeyBytes())); assertThat(actual.getBlob(), is(expected.getBlob())); assertThat(actual.getSyntheticPassword(), is(expected.getSyntheticPassword())); }