Program: 90706
Project: 90706
Buggy source:
@Test public void testDelivery(){
  final SMTPAppender appender=SMTPAppender.createAppender("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",null,HOST,PORT,null,null,"String_Node_Str","String_Node_Str",null,null,"String_Node_Str");
  appender.start();
  final LoggerContext context=(LoggerContext)LogManager.getContext();
  final Logger root=context.getLogger("String_Node_Str");
  root.addAppender(appender);
  root.setAdditive(false);
  root.setLevel(Level.DEBUG);
  final SimpleSmtpServer server=SimpleSmtpServer.start(PORTNUM);
  root.debug("String_Node_Str");
  root.debug("String_Node_Str");
  root.debug("String_Node_Str");
  root.debug("String_Node_Str");
  root.error("String_Node_Str",new RuntimeException("String_Node_Str"));
  server.stop();
  assertTrue(server.getReceivedEmailSize() == 1);
  final SmtpMessage email=server.getReceivedEmail().next();
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  final String body=email.getBody();
  assertFalse(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testDelivery(){
  final SMTPAppender appender=SMTPAppender.createAppender("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",null,HOST,PORT,null,null,"String_Node_Str","String_Node_Str",null,null,"String_Node_Str");
  appender.start();
  final LoggerContext context=(LoggerContext)LogManager.getContext();
  final Logger root=context.getLogger("String_Node_Str");
  root.addAppender(appender);
  root.setAdditive(false);
  root.setLevel(Level.DEBUG);
  final SimpleSmtpServer server=SimpleSmtpServer.start(PORTNUM);
  root.debug("String_Node_Str");
  root.debug("String_Node_Str");
  root.debug("String_Node_Str");
  root.debug("String_Node_Str");
  root.error("String_Node_Str",new RuntimeException("String_Node_Str"));
  root.error("String_Node_Str");
  server.stop();
  assertTrue(server.getReceivedEmailSize() == 2);
  final Iterator<SmtpMessage> messages=server.getReceivedEmail();
  final SmtpMessage email=messages.next();
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  assertEquals("String_Node_Str",email.getHeaderValue("String_Node_Str"));
  final String body=email.getBody();
  assertFalse(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertTrue(body.contains("String_Node_Str"));
  assertFalse(body.contains("String_Node_Str"));
  final SmtpMessage email2=(SmtpMessage)messages.next();
  final String body2=email2.getBody();
  assertFalse(body2.contains("String_Node_Str"));
  assertFalse(body2.contains("String_Node_Str"));
  assertTrue(body2.contains("String_Node_Str"));
}