DynamodbIdentityTransformer { public static Identity toIdentityV2(final com.amazonaws.services.lambda.runtime.events.models.dynamodb.Identity identity) { return Identity.builder() .principalId(identity.getPrincipalId()) .type(identity.getType()) .build(); }  static Identity toIdentityV2(final com.amazonaws.services.lambda.runtime.events.models.dynamodb.Identity identity);  }
@Test public void testToIdentityV2() { Identity convertedIdentity = DynamodbIdentityTransformer.toIdentityV2(identity_event); Assertions.assertEquals(identity_v2, convertedIdentity); }