Program: 47374
Project: 47374
Buggy source:
@Test public void testConfig(){
  assertNotNull(instance1);
  CacheSimpleConfig simpleConfig=instance1.getConfig().getCacheConfigs().get("String_Node_Str");
  assertNotNull(simpleConfig);
  assertEquals(1,simpleConfig.getAsyncBackupCount());
  assertEquals(2,simpleConfig.getBackupCount());
  assertEquals("String_Node_Str",simpleConfig.getKeyType());
  assertEquals("String_Node_Str",simpleConfig.getValueType());
  assertTrue(simpleConfig.isStatisticsEnabled());
  assertTrue(simpleConfig.isManagementEnabled());
  assertTrue(simpleConfig.isReadThrough());
  assertTrue(simpleConfig.isWriteThrough());
  assertEquals("String_Node_Str",simpleConfig.getCacheLoaderFactory());
  assertEquals("String_Node_Str",simpleConfig.getCacheWriterFactory());
  assertEquals("String_Node_Str",simpleConfig.getExpiryPolicyFactory());
  assertEquals(InMemoryFormat.OBJECT,simpleConfig.getInMemoryFormat());
  assertNotNull(simpleConfig.getEvictionConfig());
  assertEquals(50,simpleConfig.getEvictionConfig().getSize());
  assertEquals(EvictionConfig.MaxSizePolicy.ENTRY_COUNT,simpleConfig.getEvictionConfig().getMaxSizePolicy());
  assertEquals(EvictionPolicy.LRU,simpleConfig.getEvictionConfig().getEvictionPolicy());
  NearCacheConfig nearCacheConfig=simpleConfig.getNearCacheConfig();
  assertNotNull(nearCacheConfig);
  assertEquals(10000,nearCacheConfig.getTimeToLiveSeconds());
  assertEquals(5000,nearCacheConfig.getMaxIdleSeconds());
  assertFalse(nearCacheConfig.isInvalidateOnChange());
  assertEquals(InMemoryFormat.OBJECT,nearCacheConfig.getInMemoryFormat());
  assertTrue(nearCacheConfig.isCacheLocalEntries());
  assertNotNull(nearCacheConfig.getEvictionConfig());
  assertEquals(100,nearCacheConfig.getEvictionConfig().getSize());
  assertEquals(EvictionConfig.MaxSizePolicy.ENTRY_COUNT,nearCacheConfig.getEvictionConfig().getMaxSizePolicy());
  assertEquals(EvictionPolicy.LFU,nearCacheConfig.getEvictionConfig().getEvictionPolicy());
}

Fixed version (ground truth):
@Test public void testConfig(){
  assertNotNull(instance1);
  CacheSimpleConfig simpleConfig=instance1.getConfig().getCacheConfigs().get("String_Node_Str");
  assertNotNull(simpleConfig);
  assertEquals(1,simpleConfig.getAsyncBackupCount());
  assertEquals(2,simpleConfig.getBackupCount());
  assertEquals("String_Node_Str",simpleConfig.getKeyType());
  assertEquals("String_Node_Str",simpleConfig.getValueType());
  assertTrue(simpleConfig.isStatisticsEnabled());
  assertTrue(simpleConfig.isManagementEnabled());
  assertTrue(simpleConfig.isReadThrough());
  assertTrue(simpleConfig.isWriteThrough());
  assertEquals("String_Node_Str",simpleConfig.getCacheLoaderFactory());
  assertEquals("String_Node_Str",simpleConfig.getCacheWriterFactory());
  assertEquals("String_Node_Str",simpleConfig.getExpiryPolicyFactory());
  assertEquals(InMemoryFormat.OBJECT,simpleConfig.getInMemoryFormat());
  assertNotNull(simpleConfig.getEvictionConfig());
  assertEquals(50,simpleConfig.getEvictionConfig().getSize());
  assertEquals(EvictionConfig.MaxSizePolicy.ENTRY_COUNT,simpleConfig.getEvictionConfig().getMaximumSizePolicy());
  assertEquals(EvictionPolicy.LRU,simpleConfig.getEvictionConfig().getEvictionPolicy());
  NearCacheConfig nearCacheConfig=simpleConfig.getNearCacheConfig();
  assertNotNull(nearCacheConfig);
  assertEquals(10000,nearCacheConfig.getTimeToLiveSeconds());
  assertEquals(5000,nearCacheConfig.getMaxIdleSeconds());
  assertFalse(nearCacheConfig.isInvalidateOnChange());
  assertEquals(InMemoryFormat.OBJECT,nearCacheConfig.getInMemoryFormat());
  assertTrue(nearCacheConfig.isCacheLocalEntries());
  assertNotNull(nearCacheConfig.getEvictionConfig());
  assertEquals(100,nearCacheConfig.getEvictionConfig().getSize());
  assertEquals(EvictionConfig.MaxSizePolicy.ENTRY_COUNT,nearCacheConfig.getEvictionConfig().getMaximumSizePolicy());
  assertEquals(EvictionPolicy.LFU,nearCacheConfig.getEvictionConfig().getEvictionPolicy());
}