public void setEptl(ChangeRequest request) {
        final DocumentStatus ds = fetchStatus(request);
        ds.setEptl(request.getEptl());
        repository.save(ds);
    }
@Test
    public void setEptl() throws Exception {
        final DocumentStatus dummyDocumentStatus = new DocumentStatus();
        dummyDocumentStatus.setId(1L);
        dummyDocumentStatus.setDocType(DocTypeType.NL_RIJBEWIJS);
        dummyDocumentStatus.setPseudonym(pseudonym);
        dummyDocumentStatus.setSequenceNo("SSSSSSSSSSSSS");
        dummyDocumentStatus.setStatus(StatusType.GEACTIVEERD);
        dummyDocumentStatus.setStatusMu(MUStatusType.ACTIEF);

        when(bsnkPseudonymDecryptorMock.decryptEp(anyString(), anyString(), anyString())).thenReturn(pseudonym);
        when(documentStatusRepositoryMock.findByPseudonymAndDocTypeAndSequenceNo(anyString(), any(DocTypeType.class), anyString())).thenReturn(Optional.of(dummyDocumentStatus));

        final String eptl = "TL-ENCRYPTED";
        final ChangeRequest request = new ChangeRequest();
        request.setDocType(dummyDocumentStatus.getDocType());
        request.setEpsc(encrypted);
        request.setSequenceNo(dummyDocumentStatus.getSequenceNo());
        request.setEptl(eptl);

        documentStatusService.setEptl(request);

        ArgumentCaptor<DocumentStatus> argument = ArgumentCaptor.forClass(DocumentStatus.class);
        Mockito.verify(documentStatusRepositoryMock).save(argument.capture());

        assertEquals(eptl, argument.getValue().getEptl());
    }