ClientCredentials { public List<String> getScopes() { return Collections.list("https: "https: }  String getClientId(); String getCredentialDatastore(); String getDataStoreDirectory(); List<String> getScopes(); File getClientSecrets(); void setClientSecrets(final File clientSecrets); void setCredentialDatastore(final String credentialDatastore); void setDataStoreDirectory(final String dataStoreDirectory); @Override String toString();  }
@Test public void testGetScopes() { final ClientCredentials cc = new ClientCredentials(); for (final String scope : cc.getScopes()) { if (!scope.startsWith("https: fail("Invalid YouTube v3 auth configuration where scope = " + scope); } } }