### Question:
MemoryIntIDFactory implements IIntIDFactory { public int getNewID () { return m_aID.getAndIncrement (); } MemoryIntIDFactory();  MemoryIntIDFactory(@Nonnegative final int nStartID); int getNewID(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final int DEFAULT_START_ID; }### Answer:
@Test @SuppressFBWarnings ("TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED") public void testAll () { final MemoryIntIDFactory x = new MemoryIntIDFactory (9); assertEquals (9, x.getNewID ()); CommonsTestHelper.testDefaultImplementationWithEqualContentObject (x, new MemoryIntIDFactory (10)); CommonsTestHelper.testDefaultImplementationWithDifferentContentObject (x, new MemoryIntIDFactory (11)); try { new MemoryIntIDFactory (-1); fail (); } catch (final IllegalArgumentException ex) {} }