Program: 100696
Project: 100696
Buggy source:
@Test public void testId() throws SAXException, URISyntaxException {
  final ValidationFilter f=new ValidationFilter();
  f.setContentHandler(new DefaultHandler());
  final TestUtils.CachingLogger l=new TestUtils.CachingLogger();
  f.setLogger(l);
  f.startElement(NULL_NS_URI,TOPIC_TOPIC.localName,TOPIC_TOPIC.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_TOPIC.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  assertEquals(1,l.getMessages().size());
  f.startElement(NULL_NS_URI,TOPIC_TOPIC.localName,TOPIC_TOPIC.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_TOPIC.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  assertEquals(1,l.getMessages().size());
  assertEquals(TestUtils.CachingLogger.Message.Level.WARN,l.getMessages().get(0).level);
}

Fixed version (ground truth):
@Test public void testId() throws SAXException, URISyntaxException {
  final ValidationFilter f=new ValidationFilter();
  f.setValidateMap(Collections.EMPTY_MAP);
  f.setContentHandler(new DefaultHandler());
  final TestUtils.CachingLogger l=new TestUtils.CachingLogger();
  f.setLogger(l);
  f.startElement(NULL_NS_URI,TOPIC_TOPIC.localName,TOPIC_TOPIC.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_TOPIC.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  assertEquals(1,l.getMessages().size());
  f.startElement(NULL_NS_URI,TOPIC_TOPIC.localName,TOPIC_TOPIC.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_TOPIC.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  f.startElement(NULL_NS_URI,TOPIC_P.localName,TOPIC_P.localName,new AttributesBuilder().add(ATTRIBUTE_NAME_CLASS,TOPIC_P.toString()).add(ATTRIBUTE_NAME_ID,"String_Node_Str").build());
  assertEquals(1,l.getMessages().size());
  assertEquals(TestUtils.CachingLogger.Message.Level.WARN,l.getMessages().get(0).level);
}