Program: 145852
Project: 145852
Buggy source:
/** 
 * Test of getCurrentData method, of class GPSSensorController.
 * @throws java.lang.Exception
 */
@Test public void testShouldReturnAllKeysWhenKeysAreSubsetOfParsedSentence() throws Exception {
  HashMap<String,String> parsedSentence=new HashMap<>();
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  GPSSensor ublox=mock(GPSSensor.class);
  HashSet<String> supportedNmeaSentences=new HashSet<>();
  supportedNmeaSentences.add("String_Node_Str");
  supportedNmeaSentences.add("String_Node_Str");
  when(ublox.getNmeaSentence(anyString())).thenReturn("String_Node_Str");
  when(ublox.getSupportedNmeaSentences()).thenReturn(supportedNmeaSentences);
  mockStatic(NMEASentenceParser.class);
  when(NMEASentenceParser.parse(anyString())).thenReturn(parsedSentence);
  GPSSensorController mController=new GPSSensorController(ublox,properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"));
  HashMap<String,Object> result=mController.getCurrentData();
  assert(!result.isEmpty());
  assert(result.get("String_Node_Str").equals("String_Node_Str"));
  assert(result.get("String_Node_Str").equals("String_Node_Str"));
  assert(result.get("String_Node_Str").equals("String_Node_Str"));
  assert(result.get("String_Node_Str").equals("String_Node_Str"));
  assert(result.get("String_Node_Str").equals("String_Node_Str"));
}

Fixed version (ground truth):
/** 
 * Test of getCurrentData method, of class GPSSensorController.
 * @throws java.lang.Exception
 */
@Test public void testShouldReturnAllKeysWhenKeysAreSubsetOfParsedSentence() throws Exception {
  HashMap<String,String> parsedSentence=new HashMap<>();
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  parsedSentence.put("String_Node_Str","String_Node_Str");
  GPSSensor ublox=mock(GPSSensor.class);
  HashSet<String> supportedNmeaSentences=new HashSet<>();
  supportedNmeaSentences.add("String_Node_Str");
  supportedNmeaSentences.add("String_Node_Str");
  when(ublox.getNmeaSentence(anyString())).thenReturn("String_Node_Str");
  when(ublox.getSupportedNmeaSentences()).thenReturn(supportedNmeaSentences);
  mockStatic(NMEASentenceParser.class);
  when(NMEASentenceParser.parse(anyString())).thenReturn(parsedSentence);
  GPSSensorController mController=new GPSSensorController(ublox,properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"),properties.getProperty("String_Node_Str"));
  HashMap<String,Object> result=mController.getCurrentData();
  assertTrue(!result.isEmpty());
  assertTrue(result.get("String_Node_Str").equals("String_Node_Str"));
  assertTrue(result.get("String_Node_Str").equals("String_Node_Str"));
  assertTrue(result.get("String_Node_Str").equals("String_Node_Str"));
  assertTrue(result.get("String_Node_Str").equals("String_Node_Str"));
  assertTrue(result.get("String_Node_Str").equals("String_Node_Str"));
}