AbstractStupsAccessTokenProvider implements AccessTokenProvider { @Override public boolean supportsRefresh(final OAuth2ProtectedResourceDetails resource) { return false; }  @Override boolean supportsResource(final OAuth2ProtectedResourceDetails resource); @Override OAuth2AccessToken refreshAccessToken(final OAuth2ProtectedResourceDetails resource,
            final OAuth2RefreshToken refreshToken, final AccessTokenRequest request); @Override boolean supportsRefresh(final OAuth2ProtectedResourceDetails resource);  }
@Test public void testSupportsRefresh() { assertThat(accessTokenProvider.supportsRefresh(mock(OAuth2ProtectedResourceDetails.class))).isFalse(); }