### Question:
Pool { public byte[] getAndClear() { writeLock.lock(); try { size = 0; return poolDigest.digest(); } finally { writeLock.unlock(); } }  long size(); void add(int source, byte[] event); byte[] getAndClear();  }### Answer:
@Test public void shouldGet32BytesOfSeedData() throws Exception { byte[] bytes = pool.getAndClear(); assertEquals(32, bytes.length); }