public static boolean areUserEqual(final User usr1, final User usr2) throws TestException  {
        if (!usr1.getLogin().equals(usr2.getLogin())) {
            throw new TestException("Logins not equals");
        }
        if (!usr1.getFirstName().equals(usr2.getFirstName())) {
            throw new TestException("First names not equals");
        }
        if (!usr1.getLastName().equals(usr2.getLastName())) {
            throw new TestException("Last names not equals");
        }
        if (!usr1.getBirthDate().equals(usr2.getBirthDate())) {
            throw new TestException("Birth dates not equals");
        }
        if (!usr1.getAvatarPath().equals(usr2.getAvatarPath())) {
            throw new TestException("Avatar paths not equals");
        }
        return true;
    }