@Override
    public int hashCode() {
        return Objects.hash(taskId, topicPartitions);
    }
@Test
    public void shouldBeEqualsIfOnlyDifferInIdlingTime() {
        final TaskMetadataImpl stillSameDifferIdlingTime = new TaskMetadataImpl(
            TASK_ID,
            TOPIC_PARTITIONS,
            COMMITTED_OFFSETS,
            END_OFFSETS,
            Optional.empty());
        assertThat(taskMetadata, equalTo(stillSameDifferIdlingTime));
        assertThat(taskMetadata.hashCode(), equalTo(stillSameDifferIdlingTime.hashCode()));
    }