public Map<String, String> pukRequestAllowed(PukRequest request) throws PukRequestException {
        final PenRequestStatus result = repository.findFirstByBsnAndDocTypeAndSequenceNoOrderByRequestDatetimeDesc(request.getBsn(), request.getDocType(), request.getSequenceNo());
        checkExpirationDatePen(result);

        return statusOK;
    }
@Test
    public void pukRequestAllowedOnlyPossibleAfterPenRequest() throws PukRequestException {
        Mockito.when(mockRepository.findFirstByBsnAndDocTypeAndSequenceNoOrderByRequestDatetimeDesc(request.getBsn(), request.getDocType(), request.getSequenceNo())).thenReturn(null);

        Exception exception = assertThrows(PukRequestException.class, () -> {
            service.pukRequestAllowed(request);
        });
        assertEquals("DWS6", exception.getMessage());
    }