@Test
public void closeWithNoMessage() throws IOException, SQLException {

    final CloseableWriter<Integer> innerMock = mock(CloseableWriter.class);
    final ExpiringConsumer<Integer> consumer = new ExpiringConsumer<>(innerMock, Duration.ZERO, 10);
    consumer.close();
    verify(innerMock, times(1)).close();
}