IdGenerator { public static void initialiseIdCounter(Class<?> classForId, long lastId) { getRawIdGenerator(classForId).set(lastId); } private  IdGenerator(); static Id<T> getId(Class<T> classForId); static Id<T> getCachedId(Class<T> classForId); static AtomicLong getRawIdGenerator(Class<?> classForId); static void initialiseIdCounter(Class<?> classForId, long lastId); static void clear();  }
@Test public void initialiseIdCounter() { IdGenerator.initialiseIdCounter(A.class, 100); Assertions.assertEquals(IdGenerator.getId(A.class).id, 100); }