Buggy code:
public class PersistenceXmlParsingTests { @ Test public void testMetaInfCase ( ) throws Exception { } @ Test public void testExample1 ( ) throws Exception { } @ Test public void testExample2 ( ) throws Exception { } @ Test public void testExample3 ( ) throws Exception { } @ Test public void testExample4 ( ) throws Exception { } @ Test public void testExample5 ( ) throws Exception { } @ Test public void testExampleComplex ( ) throws Exception { } @ Test public void testExample6 ( ) throws Exception { } @ Ignore @ Test public void testInvalidPersistence ( ) throws Exception { } @ Ignore @ Test public void testNoSchemaPersistence ( ) throws Exception { } @ Test public void testPersistenceUnitRootUrl ( ) throws Exception { } @ Test public void testPersistenceUnitRootUrlWithJar ( ) throws Exception { } @ Test public void testJpa1ExcludeUnlisted ( ) throws Exception { } @ Test public void testJpa2ExcludeUnlisted ( ) throws Exception { PersistenceUnitReader reader = new PersistenceUnitReader ( new PathMatchingResourcePatternResolver ( ) , new JndiDataSourceLookup ( ) ) ; String resource = "//org//springframework//orm//jpa//persistence-exclude-2.0.xml" ; PersistenceUnitInfo [ ] info = reader . readPersistenceUnitInfos ( resource ) ; assertNotNull ( info ) ; assertEquals ( "The<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>persistence<seq2seq4repair_space>units<seq2seq4repair_space>is<seq2seq4repair_space>incorrect." , 4 , info . length ) ; PersistenceUnitInfo noExclude = info [ 0 ] ; assertNotNull ( "noExclude<seq2seq4repair_space>should<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null." , noExclude ) ; assertEquals ( "noExclude<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>correct." , "NoExcludeElement" , noExclude . getPersistenceUnitName ( ) ) ; <START_BUG> assertTrue ( "Exclude<seq2seq4repair_space>unlisted<seq2seq4repair_space>should<seq2seq4repair_space>default<seq2seq4repair_space>true<seq2seq4repair_space>in<seq2seq4repair_space>2.0." , noExclude . excludeUnlistedClasses ( ) ) ; <END_BUG> PersistenceUnitInfo emptyExclude = info [ 1 ] ; assertNotNull ( "emptyExclude<seq2seq4repair_space>should<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null." , emptyExclude ) ; assertEquals ( "emptyExclude<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>correct." , "EmptyExcludeElement" , emptyExclude . getPersistenceUnitName ( ) ) ; assertTrue ( "emptyExclude<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>true." , emptyExclude . excludeUnlistedClasses ( ) ) ; PersistenceUnitInfo trueExclude = info [ 2 ] ; assertNotNull ( "trueExclude<seq2seq4repair_space>should<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null." , trueExclude ) ; assertEquals ( "trueExclude<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>correct." , "TrueExcludeElement" , trueExclude . getPersistenceUnitName ( ) ) ; assertTrue ( "trueExclude<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>true." , trueExclude . excludeUnlistedClasses ( ) ) ; PersistenceUnitInfo falseExclude = info [ 3 ] ; assertNotNull ( "falseExclude<seq2seq4repair_space>should<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null." , falseExclude ) ; assertEquals ( "falseExclude<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>correct." , "FalseExcludeElement" , falseExclude . getPersistenceUnitName ( ) ) ; assertFalse ( "falseExclude<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>false." , falseExclude . excludeUnlistedClasses ( ) ) ; } }

Fix:
assertFalse ( "Exclude<seq2seq4repair_space>unlisted<seq2seq4repair_space>still<seq2seq4repair_space>defaults<seq2seq4repair_space>to<seq2seq4repair_space>false<seq2seq4repair_space>in<seq2seq4repair_space>2.0." , noExclude . excludeUnlistedClasses ( ) ) ;