NoopDataStore implements DataStore { @Override public void populateEntityDictionary(EntityDictionary dictionary) { entityClasses.forEach(dictionary::bindEntity); } NoopDataStore(Collection<Class> entityClasses); @Override void populateEntityDictionary(EntityDictionary dictionary); @Override DataStoreTransaction beginTransaction();  }
@Test public void testPopulateEntityDictionary() throws Exception { DataStore store = new NoopDataStore(Arrays.asList(NoopBean.class)); EntityDictionary dictionary = new EntityDictionary(new HashMap<>()); store.populateEntityDictionary(dictionary); assertEquals(NoopBean.class, dictionary.getEntityClass("theNoopBean")); }