OAuthTokenRefresher { protected String getRequestEntity(String refreshToken) { return "refresh_token=" + refreshToken + "&grant_type=refresh_token"; } OAuthTokenRefresher(); RefreshToken useRefreshToken(String refreshToken); abstract String getTokenUrl(); abstract String getClientId(); abstract String getClientSecret();  }
@Test public void test_getRequestEntity() { assertEquals( "refresh_token=test_refresh_token&grant_type=refresh_token", refresher.getRequestEntity("test_refresh_token") ); }