### Question:
EventData implements Pool.Poolable { public final int getRefCount () { return this.refCount.get(); }  abstract int getEventType(); boolean allowTrigger(); void init(); long getTimestamp(); @Override void reset(); final int retain(); final int retain(int i); final int release(); final int getRefCount();  }### Answer:
@Test public void testGetRefCount () { DummyEventDataObject event = new DummyEventDataObject(); assertEquals(1, event.getRefCount()); event.retain(); assertEquals(2, event.getRefCount()); event.release(); assertEquals(1, event.getRefCount()); event.release(); assertEquals(0, event.getRefCount()); event.retain(2); assertEquals(2, event.getRefCount()); }