private final static String CLIENT_SECRETS = "{\"installed\": {\"client_id\": \"" + CLIENT_ID
+ "\",\"client_secret\": \"" + CLIENT_SECRET + "\"}}";
public void testLoad() throws Exception {
GoogleClientSecrets clientSecrets =
GoogleClientSecrets.load(new GsonFactory(), new StringReader(CLIENT_SECRETS));
Details installed = clientSecrets.getInstalled();
assertNotNull(installed);
assertEquals(CLIENT_ID, installed.getClientId());
assertEquals(CLIENT_SECRET, installed.getClientSecret());
}