### Question:
QueueReader { public boolean hasRecordAvailable() { maybeReadNext(); return nextRecord != null; } QueueReader(ToolOptions toolOptions);   QueueReader(ToolOptions toolOptions, ChronicleQueue chronicleQueue); boolean hasRecordAvailable(); StoredAuditRecord nextRecord();  }### Answer:
@Test public void testNothingToRead() { when(tailer.readDocument(any(ReadMarshallable.class))).thenReturn(false); QueueReader reader = givenReader(); assertThat(reader.hasRecordAvailable()).isFalse(); }