public void validateLoginName() throws ValidationException {
        validate(Validator.presenceValidator("Login name field must be non-blank."), getName());
    }
@Test
    void shouldValidateLoginNameIsNotBlank() {
        user = new User("", new String[]{"Jez,Pavan"}, "user@mail.com", true);

        assertThatCode(() -> user.validateLoginName())
                .isInstanceOf(ValidationException.class);
    }