SignedPDFConsentRevocation extends AbstractSignedPDFDocument { @Override public void setContent(byte[] content, Long consentId) { this.signedPdfConsentRevocationContent=content; DomainEventManager.raise(new ConsentRevokedEvent(consentId)); }  byte[] getSignedPdfConsentRevocationContent(); void setSignedPdfConsentRevocationContent(
			byte[] signedPdfConsentRevocationContent); @Override byte[] getContent(); @Override void setContent(byte[] content, Long consentId); Long getId(); void setId(Long id);  }
@Test public void testSetContent_ConsentRevokedEvent_Is_Fired() { SignedPDFConsentRevocation sut = new SignedPDFConsentRevocation(); byte[] content = new byte[] {}; final Long consentId = (Long) 1L; ConsentRevokedEventHandler domainEventHandler = new ConsentRevokedEventHandler(new ConsentRevokedEvent(consentId)); DomainEventManager.registerDomainEventService(new DomainEventServiceImpl()); DomainEventManager.register(domainEventHandler); sut.setContent(content, consentId); assertTrue(domainEventHandler.isEventFired()); }