private void createInjector() {
    createInjector(createMock(UserDAO.class), createMock(EntityManager.class));
  }
User creation should throw {@link AmbariException} in case another user exists with the same name but
different user type.
ambari-server/src/test/java/org/apache/ambari/server/security/authorization/UsersTest.java