Program: 47618
Project: 47618
Buggy source:
@BeforeClass public static void setup() throws Exception {
  h1=Hazelcast.newHazelcastInstance();
  h2=Hazelcast.newHazelcastInstance();
  ClientConfig clientConfig=new ClientConfig();
  NearCacheConfig basicConfigNoInvalidation=new NearCacheConfig();
  basicConfigNoInvalidation.setInMemoryFormat(InMemoryFormat.OBJECT);
  basicConfigNoInvalidation.setName(NEAR_CACHE_WITH_NO_INVALIDATION + "String_Node_Str");
  basicConfigNoInvalidation.setInvalidateOnChange(false);
  clientConfig.addNearCacheConfig(basicConfigNoInvalidation);
  NearCacheConfig maxSizeConfig=new NearCacheConfig();
  maxSizeConfig.setMaxSize(MAX_CACHE_SIZE);
  maxSizeConfig.setInvalidateOnChange(false);
  maxSizeConfig.setName(NEAR_CACHE_WITH_MAX_SIZE + "String_Node_Str");
  clientConfig.addNearCacheConfig(maxSizeConfig);
  NearCacheConfig ttlConfig=new NearCacheConfig();
  ttlConfig.setName(NEAR_CACHE_WITH_TTL + "String_Node_Str");
  ttlConfig.setInvalidateOnChange(false);
  ttlConfig.setTimeToLiveSeconds(MAX_TTL_SECONDS);
  clientConfig.addNearCacheConfig(ttlConfig);
  NearCacheConfig idleConfig=new NearCacheConfig();
  idleConfig.setName(NEAR_CACHE_WITH_IDLE + "String_Node_Str");
  idleConfig.setInvalidateOnChange(false);
  idleConfig.setMaxIdleSeconds(MAX_IDLE_SECONDS);
  clientConfig.addNearCacheConfig(idleConfig);
  NearCacheConfig longIdleConfig=new NearCacheConfig();
  idleConfig.setName(NEAR_CACHE_WITH_LONG_MAX_IDLE_TIME + "String_Node_Str");
  idleConfig.setInvalidateOnChange(true);
  idleConfig.setMaxIdleSeconds(LONG_MAX_IDLE_SECONDS);
  clientConfig.addNearCacheConfig(longIdleConfig);
  NearCacheConfig invalidateConfig=new NearCacheConfig();
  invalidateConfig.setName(NEAR_CACHE_WITH_INVALIDATION + "String_Node_Str");
  invalidateConfig.setInvalidateOnChange(true);
  clientConfig.addNearCacheConfig(invalidateConfig);
  client=HazelcastClient.newHazelcastClient(clientConfig);
}

Fixed version (ground truth):
@BeforeClass public static void setup() throws Exception {
  h1=Hazelcast.newHazelcastInstance();
  h2=Hazelcast.newHazelcastInstance();
  ClientConfig clientConfig=new ClientConfig();
  NearCacheConfig basicConfigNoInvalidation=new NearCacheConfig();
  basicConfigNoInvalidation.setInMemoryFormat(InMemoryFormat.OBJECT);
  basicConfigNoInvalidation.setName(NEAR_CACHE_WITH_NO_INVALIDATION + "String_Node_Str");
  basicConfigNoInvalidation.setInvalidateOnChange(false);
  clientConfig.addNearCacheConfig(basicConfigNoInvalidation);
  NearCacheConfig maxSizeConfig=new NearCacheConfig();
  maxSizeConfig.setMaxSize(MAX_CACHE_SIZE);
  maxSizeConfig.setInvalidateOnChange(false);
  maxSizeConfig.setName(NEAR_CACHE_WITH_MAX_SIZE + "String_Node_Str");
  clientConfig.addNearCacheConfig(maxSizeConfig);
  NearCacheConfig ttlConfig=new NearCacheConfig();
  ttlConfig.setName(NEAR_CACHE_WITH_TTL + "String_Node_Str");
  ttlConfig.setInvalidateOnChange(false);
  ttlConfig.setTimeToLiveSeconds(MAX_TTL_SECONDS);
  clientConfig.addNearCacheConfig(ttlConfig);
  NearCacheConfig idleConfig=new NearCacheConfig();
  idleConfig.setName(NEAR_CACHE_WITH_IDLE + "String_Node_Str");
  idleConfig.setInvalidateOnChange(false);
  idleConfig.setMaxIdleSeconds(MAX_IDLE_SECONDS);
  clientConfig.addNearCacheConfig(idleConfig);
  NearCacheConfig longIdleConfig=new NearCacheConfig();
  idleConfig.setName(NEAR_CACHE_WITH_LONG_MAX_IDLE_TIME + "String_Node_Str");
  idleConfig.setInvalidateOnChange(true);
  idleConfig.setMaxIdleSeconds(LONG_MAX_IDLE_SECONDS);
  clientConfig.addNearCacheConfig(longIdleConfig);
  NearCacheConfig invalidateConfig=new NearCacheConfig();
  invalidateConfig.setName(NEAR_CACHE_WITH_INVALIDATION + "String_Node_Str");
  invalidateConfig.setInvalidateOnChange(true);
  clientConfig.addNearCacheConfig(invalidateConfig);
  NearCacheConfig lfuMaxSizeConfig=new NearCacheConfig();
  lfuMaxSizeConfig.setName(NEAR_CACHE_LFU_WITH_MAX_SIZE + "String_Node_Str");
  lfuMaxSizeConfig.setInvalidateOnChange(true);
  lfuMaxSizeConfig.setMaxSize(MAX_CACHE_SIZE);
  lfuMaxSizeConfig.setEvictionPolicy("String_Node_Str");
  clientConfig.addNearCacheConfig(lfuMaxSizeConfig);
  client=HazelcastClient.newHazelcastClient(clientConfig);
}