CMS-4464 Implement REST methods to create principals
Unit tests.