Program: 55517
Project: 55517
Buggy source:
@Test public void testCreateDataSource() throws Exception {
  Properties properties=new Properties();
  properties.load(new ClassPathResource("String_Node_Str").getInputStream());
  String accessKey=properties.getProperty("String_Node_Str");
  String secretKey=properties.getProperty("String_Node_Str");
  AmazonRDSDataSourceFactoryBean factoryBean=new AmazonRDSDataSourceFactoryBean(accessKey,secretKey);
  factoryBean.setDatabaseName("String_Node_Str");
  factoryBean.setDataSourceFactory(new CommonsDbcpDataSourceFactory());
  factoryBean.setDbInstanceIdentifier("String_Node_Str");
  factoryBean.setMasterUserName("String_Node_Str");
  factoryBean.setMasterUserPassword("String_Node_Str");
  factoryBean.setEngine("String_Node_Str");
  factoryBean.setEngineVersion("String_Node_Str");
  factoryBean.setAutoMinorVersionUpgrade(true);
  factoryBean.setMultiAz(false);
  factoryBean.setAvailabilityZone("String_Node_Str");
  factoryBean.setPreferredBackupWindow("String_Node_Str");
  factoryBean.setPreferredMaintenanceWindow("String_Node_Str");
  factoryBean.setBackupRetentionPeriod(1);
  factoryBean.setAllocatedStorage(5);
  factoryBean.setAutoCreate(true);
  factoryBean.setPort(3306);
  factoryBean.setDbInstanceClass("String_Node_Str");
  factoryBean.setDataSourceFactory(new CommonsDbcpDataSourceFactory());
  factoryBean.setDbSecurityGroups(Collections.singletonList("String_Node_Str"));
  factoryBean.afterPropertiesSet();
  DataSource dataSource=factoryBean.getObject();
  JdbcTemplate jdbcTemplate=new JdbcTemplate(dataSource);
  jdbcTemplate.query("String_Node_Str",new RowMapper<Object>(){
    public Object mapRow(    ResultSet rs,    int rowNum) throws SQLException {
      return null;
    }
  }
);
  factoryBean.destroy();
}

Fixed version (ground truth):
@Test @IfProfileValue(name="String_Node_Str",value="String_Node_Str") public void testCreateDataSource() throws Exception {
  Properties properties=new Properties();
  properties.load(new ClassPathResource("String_Node_Str").getInputStream());
  String accessKey=properties.getProperty("String_Node_Str");
  String secretKey=properties.getProperty("String_Node_Str");
  AmazonRDSDataSourceFactoryBean factoryBean=new AmazonRDSDataSourceFactoryBean(accessKey,secretKey);
  factoryBean.setDatabaseName("String_Node_Str");
  factoryBean.setDataSourceFactory(new CommonsDbcpDataSourceFactory());
  factoryBean.setDbInstanceIdentifier("String_Node_Str");
  factoryBean.setMasterUserName("String_Node_Str");
  factoryBean.setMasterUserPassword("String_Node_Str");
  factoryBean.setEngine("String_Node_Str");
  factoryBean.setEngineVersion("String_Node_Str");
  factoryBean.setAutoMinorVersionUpgrade(true);
  factoryBean.setMultiAz(false);
  factoryBean.setAvailabilityZone("String_Node_Str");
  factoryBean.setPreferredBackupWindow("String_Node_Str");
  factoryBean.setPreferredMaintenanceWindow("String_Node_Str");
  factoryBean.setBackupRetentionPeriod(1);
  factoryBean.setAllocatedStorage(5);
  factoryBean.setAutoCreate(true);
  factoryBean.setPort(3306);
  factoryBean.setDbInstanceClass("String_Node_Str");
  factoryBean.setDataSourceFactory(new CommonsDbcpDataSourceFactory());
  factoryBean.setDbSecurityGroups(Collections.singletonList("String_Node_Str"));
  factoryBean.afterPropertiesSet();
  DataSource dataSource=factoryBean.getObject();
  JdbcTemplate jdbcTemplate=new JdbcTemplate(dataSource);
  jdbcTemplate.query("String_Node_Str",new RowMapper<Object>(){
    public Object mapRow(    ResultSet rs,    int rowNum) throws SQLException {
      return null;
    }
  }
);
  factoryBean.destroy();
}