    @Test
    public void testSetNewAccessToken() throws Exception {

        credentialStore.authenticate(accessToken, refreshToken, expiresIn, new Date(1000));
        credentialStore.setNewAccessToken(accessToken, expiresIn);
        assertEquals(credentialStore.getAuthStatus(), CredentialStore.AUTHENTICATED);
        assertTrue(credentialStore.getTokenAcquisitionTime().getTime() != new Date(1000).getTime());

        try {
            credentialStore.setNewAccessToken("", expiresIn);
            assertTrue(false);
        } catch (Exception ignored) {
        }
    }