  @Test
  public void testGetXml() throws Exception {

    VerticaBulkLoaderMeta vbl = new VerticaBulkLoaderMeta();
    vbl.setDefault();
    vbl.setFieldDatabase( new String[] { "fieldDB1", "fieldDB2", "fieldDB3", "fieldDB4", "fieldDB5" } );
    vbl.setFieldStream( new String[] { "fieldStr1", "fieldStr2", "fieldStr3" } );

    try {
      vbl.getXML();
      fail( "Before calling afterInjectionSynchronization, should have thrown an ArrayIndexOOB" );
    } catch ( Exception expected ) {
      // Do Nothing
    }
    vbl.afterInjectionSynchronization();
    //run without a exception
    vbl.getXML();

    int targetSz = vbl.getFieldDatabase().length;

    assertEquals( targetSz, vbl.getFieldStream().length );
  }