Buggy code:
assertEquals ( "comp" , datastoreCatalog . getDatastore ( "my_composite" ) . getDescription ( ) ) ; assertEquals ( "salesforce.com<seq2seq4repair_space>is<seq2seq4repair_space>an<seq2seq4repair_space>online<seq2seq4repair_space>CRM<seq2seq4repair_space>system" , datastoreCatalog . getDatastore ( "my_sfdc_ds" ) . getDescription ( ) ) ; assertEquals ( "mdb" , datastoreCatalog . getDatastore ( "my_access" ) . getDescription ( ) ) ; assertEquals ( "folder<seq2seq4repair_space>of<seq2seq4repair_space>sas7bdat<seq2seq4repair_space>files" , datastoreCatalog . getDatastore ( "my_sas" ) . getDescription ( ) ) ; assertEquals ( "A<seq2seq4repair_space>datastore<seq2seq4repair_space>based<seq2seq4repair_space>on<seq2seq4repair_space>plain<seq2seq4repair_space>values" , datastoreCatalog . getDatastore ( "my_pojo" ) . getDescription ( ) ) ; PojoDatastore pojoDatastore = ( ( PojoDatastore ) ( datastoreCatalog . getDatastore ( "my_pojo" ) ) ) ; { try ( UpdateableDatastoreConnection con = pojoDatastore . openConnection ( ) ) { DataContext dc = con . getDataContext ( ) ; Schema schema = dc . getDefaultSchema ( ) ; assertEquals ( "my_schema" , schema . getName ( ) ) ; assertEquals ( 2 , schema . getTableCount ( ) ) ; assertEquals ( "[table1,<seq2seq4repair_space>table2]" , Arrays . toString ( schema . getTableNames ( ) ) ) ; assertEquals ( ( "[Column[name=Foo,columnNumber=0,type=VARCHAR,nullable=true,nativeType=null,columnSize=null],<seq2seq4repair_space>" + "Column[name=Bar,columnNumber=1,type=INTEGER,nullable=true,nativeType=null,columnSize=null]]" ) , Arrays . toString ( schema . getTable ( 0 ) . getColumns ( ) ) ) ; assertEquals ( "[Column[name=Baz,columnNumber=0,type=BOOLEAN,nullable=true,nativeType=null,columnSize=null]]" , Arrays . toString ( schema . getTable ( 1 ) . getColumns ( ) ) ) ; try ( DataSet ds = dc . query ( ) . from ( "table1" ) . select ( "Foo" , "Bar" ) . execute ( ) ) { assertTrue ( ds . next ( ) ) ; assertEquals ( "Row[values=[Hello,<seq2seq4repair_space>1]]" , ds . getRow ( ) . toString ( ) ) ; assertEquals ( String . class , ds . getRow ( ) . getValue ( 0 ) . getClass ( ) ) ; assertEquals ( Integer . class , ds . getRow ( ) . getValue ( 1 ) . getClass ( ) ) ; assertTrue ( ds . next ( ) ) ; assertEquals ( "Row[values=[There,<seq2seq4repair_space>null]]" , ds . getRow ( ) . toString ( ) ) ; assertNull ( ds . getRow ( ) . getValue ( 1 ) ) ; } try ( DataSet ds = dc . query ( ) . from ( "table2" ) . select ( "Baz" ) . execute ( ) ) { assertTrue ( ds . next ( ) ) ; assertEquals ( "Row[values=[true]]" , ds . getRow ( ) . toString ( ) ) ; assertEquals ( Boolean . class , ds . getRow ( ) . getValue ( 0 ) . getClass ( ) ) ; } } } CouchDbDatastore couchDbDatastore = ( ( CouchDbDatastore ) ( datastoreCatalog . getDatastore ( "my<seq2seq4repair_space>couch" ) ) ) ; assertEquals ( "localhost" , couchDbDatastore . getHostname ( ) ) ; assertEquals ( "user" , couchDbDatastore . getUsername ( ) ) ; assertEquals ( "pass" , couchDbDatastore . getPassword ( ) ) ; assertEquals ( true , couchDbDatastore . isSslEnabled ( ) ) ; assertEquals ( 1 , couchDbDatastore . getTableDefs ( ) . length ) ; assertEquals ( "SimpleTableDef[name=foobar,columnNames=[foo,<seq2seq4repair_space>bar,<seq2seq4repair_space>baz],columnTypes=[MAP,<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>VARCHAR]]" , couchDbDatastore . getTableDefs ( ) [ 0 ] . toString ( ) ) ; MongoDbDatastore mongoDbDatastore = ( ( MongoDbDatastore ) ( datastoreCatalog . getDatastore ( "my<seq2seq4repair_space>mongo" ) ) ) ; assertEquals ( "analyzerbeans_test" , mongoDbDatastore . getDatabaseName ( ) ) ; assertEquals ( "localhost" , mongoDbDatastore . getHostname ( ) ) ; assertEquals ( 27017 , mongoDbDatastore . getPort ( ) ) ; SimpleTableDef [ ] tableDefs = mongoDbDatastore . getTableDefs ( ) ; assertEquals ( "[SimpleTableDef[name=my_col_1,columnNames=[foo,<seq2seq4repair_space>bar,<seq2seq4repair_space>baz],columnTypes=[VARCHAR,<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>DATE]]]" , Arrays . toString ( tableDefs ) ) ; XmlDatastore xmlDatastore = ( ( XmlDatastore ) ( datastoreCatalog . getDatastore ( "my_sax_xml" ) ) ) ; <START_BUG> assertEquals ( "..//..//core//src//test//resources//example-xml-file.xml" , xmlDatastore . getFilename ( ) ) ; <END_BUG> assertEquals ( ( "[XmlSaxTableDef[rowXpath=//greetings//greeting," + "valueXpaths=[//greetings//greeting//how,<seq2seq4repair_space>//greetings//greeting//what]]]" ) , Arrays . toString ( xmlDatastore . getTableDefs ( ) ) ) ; FixedWidthDatastore ds = ( ( FixedWidthDatastore ) ( datastoreCatalog . getDatastore ( "my_fixed_width_1" ) ) ) ; assertEquals ( 19 , ds . getFixedValueWidth ( ) ) ; assertEquals ( "[]" , Arrays . toString ( ds . getValueWidths ( ) ) ) ; assertEquals ( 0 , ds . getHeaderLineNumber ( ) ) ; ds = ( ( FixedWidthDatastore ) ( datastoreCatalog . getDatastore ( "my_fixed_width_2" ) ) ) ; assertEquals ( ( - 1 ) , ds . getFixedValueWidth ( ) ) ; assertEquals ( "[4,<seq2seq4repair_space>17,<seq2seq4repair_space>19]" , Arrays . toString ( ds . getValueWidths ( ) ) ) ; assertEquals ( 1 , ds . getHeaderLineNumber ( ) ) ; HBaseDatastore hbaseDatastore = ( ( HBaseDatastore ) ( datastoreCatalog . getDatastore ( "my<seq2seq4repair_space>hbase" ) ) ) ; assertEquals ( "HBaseDatastore[name=my<seq2seq4repair_space>hbase]" , hbaseDatastore . toString ( ) ) ; assertEquals ( "localhost" , hbaseDatastore . getZookeeperHostname ( ) ) ; assertEquals ( DEFAULT_ZOOKEEPER_PORT , hbaseDatastore . getZookeeperPort ( ) ) ; tableDefs = hbaseDatastore . getTableDefs ( ) ; assertNotNull ( tableDefs ) ; assertEquals ( 2 , tableDefs . length ) ; assertEquals ( "SimpleTableDef[name=table1,columnNames=[fam1:foo,<seq2seq4repair_space>fam1:bar,<seq2seq4repair_space>fam2:baz],columnTypes=[STRING,<seq2seq4repair_space>STRING,<seq2seq4repair_space>INTEGER]]" , tableDefs [ 0 ] . toString ( ) ) ; assertEquals ( "SimpleTableDef[name=table2,columnNames=[fam3:hello,<seq2seq4repair_space>fam3:world],columnTypes=[STRING,<seq2seq4repair_space>VARCHAR]]" , tableDefs [ 1 ] . toString ( ) ) ; JsonDatastore jsonDatastore = ( ( JsonDatastore ) ( datastoreCatalog . getDatastore ( "my_json" ) ) ) ; assertEquals ( "JsonDatastore[name=my_json]" , jsonDatastore . toString ( ) ) ; for ( String name : datastoreNames ) { if ( ( ( ( ( ( ( ! ( "my_jdbc_datasource" . equals ( name ) ) ) && ( ! ( "my<seq2seq4repair_space>mongo" . equals ( name ) ) ) ) && ( ! ( "my<seq2seq4repair_space>couch" . equals ( name ) ) ) ) && ( ! ( "my<seq2seq4repair_space>hbase" . equals ( name ) ) ) ) && ( ! ( "my_sfdc_ds" . equals ( name ) ) ) ) && ( ! ( "my_sugarcrm" . equals ( name ) ) ) ) && ( ! ( "my<seq2seq4repair_space>es<seq2seq4repair_space>index" . equals ( name ) ) ) ) { Datastore datastore = datastoreCatalog . getDatastore ( name ) ;

Fix:
assertEquals ( "..//core//src//test//resources//example-xml-file.xml" , xmlDatastore . getFilename ( ) ) ;