    @Test
    public void testNothingToRead()
    {

        when(tailer.readDocument(any(ReadMarshallable.class))).thenReturn(false);
        QueueReader reader = givenReader();

        assertThat(reader.hasRecordAvailable()).isFalse();
    }