@Override
    public int hashCode() {
        return Objects.hash(taskId, topicPartitions);
    }
@Test
    public void shouldBeEqualsIfOnlyDifferInCommittedOffsets() {
        final TaskMetadataImpl stillSameDifferCommittedOffsets = new TaskMetadataImpl(
            TASK_ID,
            TOPIC_PARTITIONS,
            mkMap(mkEntry(TP_1, 1000000L), mkEntry(TP_1, 2L)),
            END_OFFSETS,
            TIME_CURRENT_IDLING_STARTED);
        assertThat(taskMetadata, equalTo(stillSameDifferCommittedOffsets));
        assertThat(taskMetadata.hashCode(), equalTo(stillSameDifferCommittedOffsets.hashCode()));
    }