@Override
    public int hashCode() {
        return Objects.hash(taskId, topicPartitions);
    }
@Test
    public void shouldNotBeEqualsIfDifferInTaskID() {
        final TaskMetadataImpl differTaskId = new TaskMetadataImpl(
            new TaskId(1, 10000),
            TOPIC_PARTITIONS,
            COMMITTED_OFFSETS,
            END_OFFSETS,
            TIME_CURRENT_IDLING_STARTED);
        assertThat(taskMetadata, not(equalTo(differTaskId)));
        assertThat(taskMetadata.hashCode(), not(equalTo(differTaskId.hashCode())));
    }