public void revokePublisherAgreement(UserData user, UserData admin) {
        checkApiUrl();
        checkEclipseData(user);

        var eclipseToken = admin == null ? checkEclipseToken(user) : checkEclipseToken(admin);
        var headers = new HttpHeaders();
        headers.setBearerAuth(eclipseToken.accessToken);
        var request = new HttpEntity<>(headers);
        var urlTemplate = eclipseApiUrl + "openvsx/publisher_agreement/{personId}";
        var uriVariables = Map.of("personId", user.getEclipsePersonId());

        try {
            var requestCallback = restTemplate.httpEntityCallback(request);
            restTemplate.execute(urlTemplate, HttpMethod.DELETE, requestCallback, null, uriVariables);
        } catch (RestClientException exc) {
            var url = UriComponentsBuilder.fromUriString(urlTemplate).build(uriVariables);
            logger.error("Delete request failed with URL: " + url, exc);
            throw new ErrorResultException("Request for revoking publisher agreement failed: " + exc.getMessage(),
                    HttpStatus.INTERNAL_SERVER_ERROR);
        }
    }
@Test
    public void testRevokePublisherAgreement() {
        var user = mockUser();
        user.setEclipsePersonId("test");

        eclipse.revokePublisherAgreement(user, null);
    }