### Question:
ConsentEntity extends InstanceDependableEntity implements Authorisable { public boolean shouldConsentBeExpired() { if (ConsentType.getByValue(getConsentType()) == ConsentType.PIIS_TPP) { return false; } return !this.getConsentStatus().isFinalisedStatus() && (this.isExpiredByDate() || this.isNonReccuringAlreadyUsed()); }  @PostLoad void consentPostLoad(); @PreUpdate void consentPreUpdate(); @PrePersist void consentPrePersist(); boolean isConfirmationExpired(long expirationPeriodMs); void addUsage(AisConsentUsage aisConsentUsage); boolean isWrongConsentData(); boolean isExpiredByDate(); boolean shouldConsentBeExpired(); boolean isNonReccuringAlreadyUsed(); boolean isOneAccessType(); @Override String getInternalRequestId(AuthorisationType authorisationType);  }### Answer:
@Test void shouldConsentBeExpired_PiisTppConsent() { ConsentEntity piisConsent = new ConsentEntity(); piisConsent.setConsentType(ConsentType.PIIS_TPP.getName()); boolean shouldConsentBeExpired = piisConsent.shouldConsentBeExpired(); assertFalse(shouldConsentBeExpired); }