RandomModel extends AbstractModel<RandomUser> { @Override public boolean unregister(RandomUser element) { return true; } RandomModel(RandomGenerator rng); @Override boolean register(RandomUser element); @Override @Nonnull U get(Class<U> clazz); @Override boolean unregister(RandomUser element); @CheckReturnValue static Builder builder(); static final long DEFAULT_SEED; }
@Test public void testUnregister() { assertTrue(model.unregister(new RandomUser() { @Override public void setRandomGenerator(RandomProvider provider) {} })); }