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