Program: 48805
Project: 48805
Buggy source:
@Test public void testMapGetAll(){
  final Map<String,String> _map=new HashMap<String,String>();
  _map.put("String_Node_Str","String_Node_Str");
  _map.put("String_Node_Str","String_Node_Str");
  _map.put("String_Node_Str","String_Node_Str");
  final AtomicBoolean loadAllCalled=new AtomicBoolean(false);
  final AtomicBoolean loadCalled=new AtomicBoolean(false);
  TestHazelcastInstanceFactory nodeFactory=createHazelcastInstanceFactory(2);
  Config cfg=new Config();
  MapStoreConfig mapStoreConfig=new MapStoreConfig();
  mapStoreConfig.setEnabled(true);
  mapStoreConfig.setImplementation(new MapLoader<String,String>(){
    public String load(    String key){
      loadCalled.set(true);
      System.err.println("String_Node_Str" + key);
      return _map.get(key);
    }
    public Map<String,String> loadAll(    Collection<String> keys){
      loadAllCalled.set(true);
      final HashMap<String,String> temp=new HashMap<String,String>();
      for (      String key : keys) {
        temp.put(key,_map.get(key));
      }
      return temp;
    }
    public Set<String> loadAllKeys(){
      return _map.keySet();
    }
  }
);
  cfg.getMapConfig("String_Node_Str").setMapStoreConfig(mapStoreConfig);
  HazelcastInstance instance1=nodeFactory.newHazelcastInstance(cfg);
  HazelcastInstance instance2=nodeFactory.newHazelcastInstance(cfg);
  IMap map=instance1.getMap("String_Node_Str");
  final HashSet<String> keys=new HashSet<String>();
  keys.add("String_Node_Str");
  keys.add("String_Node_Str");
  keys.add("String_Node_Str");
  final Map subMap=map.getAll(keys);
  assertEquals(2,subMap.size());
  assertEquals("String_Node_Str",subMap.get("String_Node_Str"));
  assertEquals("String_Node_Str",subMap.get("String_Node_Str"));
  assertTrue(loadAllCalled.get());
  assertFalse(loadCalled.get());
}

Fixed version (ground truth):
@Test public void testMapGetAll() throws InterruptedException {
  final Map<String,String> _map=new HashMap<String,String>();
  _map.put("String_Node_Str","String_Node_Str");
  _map.put("String_Node_Str","String_Node_Str");
  _map.put("String_Node_Str","String_Node_Str");
  final AtomicBoolean loadAllCalled=new AtomicBoolean(false);
  final AtomicBoolean loadCalled=new AtomicBoolean(false);
  TestHazelcastInstanceFactory nodeFactory=createHazelcastInstanceFactory(2);
  Config cfg=new Config();
  MapStoreConfig mapStoreConfig=new MapStoreConfig();
  mapStoreConfig.setEnabled(true);
  mapStoreConfig.setImplementation(new MapLoader<String,String>(){
    public String load(    String key){
      loadCalled.set(true);
      System.err.println("String_Node_Str" + key);
      return _map.get(key);
    }
    public Map<String,String> loadAll(    Collection<String> keys){
      loadAllCalled.set(true);
      final HashMap<String,String> temp=new HashMap<String,String>();
      for (      String key : keys) {
        temp.put(key,_map.get(key));
      }
      return temp;
    }
    public Set<String> loadAllKeys(){
      return _map.keySet();
    }
  }
);
  cfg.getMapConfig("String_Node_Str").setMapStoreConfig(mapStoreConfig);
  HazelcastInstance instance1=nodeFactory.newHazelcastInstance(cfg);
  HazelcastInstance instance2=nodeFactory.newHazelcastInstance(cfg);
  IMap map=instance1.getMap("String_Node_Str");
  final HashSet<String> keys=new HashSet<String>();
  keys.add("String_Node_Str");
  keys.add("String_Node_Str");
  keys.add("String_Node_Str");
  final Map subMap=map.getAll(keys);
  assertEquals(2,subMap.size());
  assertEquals("String_Node_Str",subMap.get("String_Node_Str"));
  assertEquals("String_Node_Str",subMap.get("String_Node_Str"));
  assertTrue(loadAllCalled.get());
  assertFalse(loadCalled.get());
}