public Status currentStatus(FetchRequest request) {
        final DocumentStatus ds = fetchStatus(request);

        if (MUStatusType.ACTIEF == ds.getStatusMu() || ds.getDocType() == DocTypeType.NI) {
            switch (ds.getStatus()) {
                case GEACTIVEERD:
                    return Status.ACTIVE;
                case UITGEREIKT:
                    return Status.ISSUED;
                case GEBLOKKEERD:
                    return Status.BLOCKED;
                default:
                    break;
            }
        }
        return Status.INACTIVE;
    }
@Test
    public void getDocumentStatusNotFoundExceptionTest() throws Exception {
        when(bsnkPseudonymDecryptorMock.decryptEp(anyString(), anyString(), anyString())).thenReturn(pseudonym);
        when(documentStatusRepositoryMock.findByPseudonymAndDocTypeAndSequenceNo(anyString(), any(DocTypeType.class), anyString())).thenReturn(Optional.empty());

        FetchRequest request = new FetchRequest();
        request.setEpsc(encrypted);

        assertThrows(DocumentNotFoundException.class, () -> {
            documentStatusService.currentStatus(request);
        });
    }