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