@Override
    public AppResponse process(Flow flow, AppSessionRequest request) {
        Map<String, Object> result = new HashMap<>(digidClient.getAccountRequestGbaStatus(appSession.getRegistrationId()));

        if (result.get(lowerUnderscore(STATUS)).equals("OK")) {
            return new OkResponse();
        } else if (result.get(lowerUnderscore(STATUS)).equals("PENDING")) {
            setValid(false); // gba check in progress, do not transition to next step yet
            return new StatusResponse("PENDING");
        } else {
            if (result.get(lowerUnderscore(STATUS)).equals("NOK") && result.get(ERROR) != null) {
                return new PollBrpResponse((String) result.get(ERROR), result);
            }
            return new NokResponse();
        }
    }
@Test
    void processOKTest() {
        when(digidClientMock.getAccountRequestGbaStatus(1337L)).thenReturn(Map.of(
            lowerUnderscore(STATUS), "OK"
        ));

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

        assertTrue(appResponse instanceof OkResponse);
        assertEquals("OK", ((OkResponse) appResponse).getStatus());
    }