add GenericPrincipal sample