HashMap db = new HashMap() { public Object get(Object key) { return "dummy"; } }; EJBLocalHome home = new TestLocalHome(db);
HashMap db = new DummyHashMap(); EJBLocalHome home = new DummyLocalHome(db);
    public void testGenerateMultipleFailedConsecutiveIDs() throws Exception {        // use a map that always return non null to fake that it always find an existing id        HashMap db = new HashMap() {            public Object get(Object key) {                return "dummy";            }        };        EJBLocalHome home = new TestLocalHome(db);        for (int i = 0; i < IT; i++) {            try {                Integer id = SimpleSequenceGenerator.getNextCount( home );                id.intValue();            } catch (EJBException e){            }        }    }