    void setup()
    {
        this.saveAction = new SaveAction();

        context = oldcore.getXWikiContext();

        xWiki = mock(XWiki.class);
        context.setWiki(this.xWiki);

        mockRequest = mock(XWikiRequest.class);
        context.setRequest(mockRequest);

        mockResponse = mock(XWikiResponse.class);
        context.setResponse(mockResponse);

        mockDocument = mock(XWikiDocument.class);
        context.setDoc(mockDocument);

        mockClonedDocument = mock(XWikiDocument.class);
        when(mockDocument.clone()).thenReturn(mockClonedDocument);

        mockForm = mock(EditForm.class);
        context.setForm(mockForm);
        when(this.entityNameValidationConfiguration.useValidation()).thenReturn(false);

        context.setUserReference(USER_REFERENCE);
    }
The software does not perform an authorization check when an actor attempts to access a resource or perform an action.