assertThat(user, is(nullValue()));
}
@Test
public void getByUserEmail_valid() {
JpaUser user = (JpaUser)repository.getByUserEmail(USER_EMAIL);
assertThat(user, notNullValue());
assertThat(user.getEntityId(), is(equalTo(USER_ID)));
assertThat(true, is(passwordEncoder.matches(USER_NAME, user.getPassword())));
assertThat(user.isAccountNonExpired(), is(true));
assertThat(user.getEmail(), is(equalTo(USER_EMAIL)));
}