EvictionDao extends HibernateDao<Eviction, Long> implements
      IEvictionDao { public Eviction getFactoryDefault () { Eviction eviction = new Eviction (); EvictionConfiguration config = cfgManager.getArchiveConfiguration () .getEvictionConfiguration (); eviction.setMaxDiskUsage (config.getMaxDiskUsage ()); eviction.setKeepPeriod (config.getKeepPeriod ()); eviction.setStrategy (EvictionStrategy.NONE); eviction.setMaxProductNumber (config.getMaxEvictedProducts ()); return eviction; }  Eviction getFactoryDefault(); Eviction getEviction(); void update(EvictionStrategy strategy, int keep_period,
      int max_disk_usage); void setProducts(Set<Product> products); Set<Product> getProducts(); void removeProduct(Product product);  }
@Test public void getFactoryDefault () { Eviction eviction = dao.getFactoryDefault (); assertEquals (eviction.getKeepPeriod (), 10); assertEquals (eviction.getMaxDiskUsage (), 80); assertEquals (eviction.getMaxProductNumber (), 1000); assertEquals (eviction.getStrategy (), EvictionStrategy.NONE); assertTrue (eviction.getProducts ().isEmpty ()); }