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