@Test public void testInvalidPutCodeReturns404() throws InterruptedException, JSONException { String accessToken = getAccessToken(this.client1ClientId, this.client1ClientSecret, this.client1RedirectUri); assertNotNull(accessToken); Address address = new Address(); address.setCountry(new Country(Iso3166Country.CR)); address.setVisibility(Visibility.PUBLIC); address.setPutCode(1234567890L); ClientResponse response = memberV2ApiClient.updateAddress(user1OrcidId, address, accessToken); assertNotNull(response); assertEquals(ClientResponse.Status.NOT_FOUND.getStatusCode(), response.getStatus()); }