public Long getOffset(TopicPartition partition) {
        return lastProcessedOffset.get(partition);
    }
@Order(2)
    @Test
    @DisplayName("Tests whether the cache can retrieve offset information")
    void getOffset() {
        final TopicPartition topic1 = new TopicPartition("topic1", 1);

        assertTrue(offsetCache.contains(topic1));
        assertEquals(2, offsetCache.getOffset(topic1));
        assertEquals(1, offsetCache.cacheSize());
    }