@Override
    public AppResponse process(Flow flow, ReplaceApplicationRequest request) {
        if (appSession.getRegistrationId() == null) {
            return new NokResponse();
        }

        Map<String, String> result = digidClient.replaceExistingApplication(appSession.getRegistrationId(), request.isReplaceApplication());

        if (result.get(lowerUnderscore(STATUS)).equals("OK")) {
            return new OkResponse();
        } else {
            return new NokResponse();
        }
    }
@Test
    void processNOKMissingRegistrationTest(){
        replaceExistingApplication.getAppSession().setRegistrationId(null);

        AppResponse appResponse = replaceExistingApplication.process(flowMock, null);

        assertTrue(appResponse instanceof NokResponse);
        assertEquals("NOK", ((NokResponse) appResponse).getStatus());
    }