@Test
public void verifyMigratedSubjects() {

    final SubjectId subjectId = SubjectId.newInstance(SubjectIssuer.GOOGLE, "user");
    final AccessControlList aclToMigrate = AccessControlList.newBuilder()
            .set(AclEntry.newInstance(AuthorizationSubject.newInstance(subjectId), Permission.READ))
            .build();
    final PolicyId policyId = PolicyId.dummy();
    final List<SubjectIssuer> issuers = Arrays.asList(SubjectIssuer.GOOGLE, SubjectIssuer.newInstance("any-other"));
    final String expectedLabel = "acl_" + subjectId.getSubject();
    final PolicyEntry expectedEntry = createExpectedPolicyEntry(expectedLabel, subjectId, issuers);
    final Policy migratedPolicy =
            PoliciesAclMigrations.accessControlListToPolicyEntries(aclToMigrate, policyId, issuers);
    assertThat(migratedPolicy.getEntryFor(expectedLabel)).contains(expectedEntry);
}