### Question:
ContextualPreferenceDao extends NamedParameterJdbcDaoSupport { public List<ContextualPreference> loadAll() { return getJdbcTemplate() .query(loadAllContextualPreferencesQuery, Parameters.getRowMapper()); }  ContextualPreference upsert(final ContextualPreference preference); Optional<ContextualPreference> load(final String name,
                                               final ContextualPreferenceExternalResource externalResource); List<ContextualPreference> load(final String name); void delete(final String name, final ContextualPreferenceExternalResource externalResource); List<ContextualPreference> loadAll();  }### Answer:
@Test public void loadAllShouldReturnEmptyListIfThereAreNoPreferences() { assertThat(contextualPreferenceDao.loadAll(), isEmpty()); }