@Override
    public int hashCode() {
        return Objects.hash(taskId, topicPartitions);
    }
@Test
    public void shouldNotBeEqualsIfDifferInTopicPartitions() {
        final TaskMetadataImpl differTopicPartitions = new TaskMetadataImpl(
            TASK_ID,
            mkSet(TP_0),
            COMMITTED_OFFSETS,
            END_OFFSETS,
            TIME_CURRENT_IDLING_STARTED);
        assertThat(taskMetadata, not(equalTo(differTopicPartitions)));
        assertThat(taskMetadata.hashCode(), not(equalTo(differTopicPartitions.hashCode())));
    }