@Test
public void testGetScopes() {

  final ClientCredentials cc = new ClientCredentials();
  for (final String scope : cc.getScopes()) {
    if (!scope.startsWith("https://www.googleapis.com/auth/youtube")) {
      fail("Invalid YouTube v3 auth configuration where scope = " + scope);
    }
  }
}