### Question:
JpaAuthorityRepository implements AuthorityRepository { @Override public List<Authority> getAllDefault() { TypedQuery<JpaAuthority> query = manager.createNamedQuery(JpaAuthority.GET_ALL_DEFAULT, JpaAuthority.class); return CollectionUtils.<Authority>toBaseTypedList(query.getResultList()); }  @Override Authority getByAuthority(String authorityName); @Override List<Authority> getAll(); @Override List<Authority> getLimitedList(int offset, int limit); @Override List<Authority> getAllDefault(); @Override int getCountAll(); @Override Class<? extends Authority> getType(); @Override Authority get(String id); @Override Authority save(Authority item); @Override void delete(Authority item);  }### Answer:
@Test public void getAllDefault() { List<Authority> allAuthorities = repository.getAllDefault(); assertThat(allAuthorities.isEmpty(), is(false)); for (Authority authority : allAuthorities) { assertThat(authority.isDefaultForNewUser(), is(true)); } }