@Test
public void partitionsRevokedNoWriter() {

    final Consumer<Long, String> consumer = mock(Consumer.class);
    final OffsetResetter offsetResetter = new OffsetResetter<>(consumer, mock(java.util.function.Consumer.class),
            Collections.emptyList());
    offsetResetter.onPartitionsRevoked(Collections.singleton(new TopicPartition(TOPIC, 1)));
}