public void testReadPropertiesFromFile_clientIdNoFilePath() throws Exception {
PropertiesConfiguration config = new PropertiesConfiguration();
config.setProperty("api.dfp.clientSecret", "clientSecret");
config.setProperty("api.dfp.refreshToken", "refreshToken");
GoogleClientSecretsForApiBuilder builder = new GoogleClientSecretsForApiBuilder(
configurationHelper, GoogleClientSecretsBuilder.Api.DFP);
try {
builder.from(config).build();
fail("Validation exception should have been thrown");
} catch (ValidationException e) {
assertEquals("Client ID must be set."
+ "\nIf you do not have a client ID or secret, please create one in the API "
+ "console: https://code.google.com/apis/console#access", e.getMessage());