@Test
public void testCreateUpsertCommandPreview() {

  String tableName = UUID.randomUUID().toString();
  String schemaName = UUID.randomUUID().toString();
  String[] fieldTable = new String[] {};
  String[] fieldStream = new String[] {};
  Boolean[] fieldUpdate = new Boolean[] {};
  when( teraDataBulkLoaderMetaMock.getSchemaName() ).thenReturn( schemaName );
  when( teraDataBulkLoaderMetaMock.getTableName() ).thenReturn( tableName );
  when( teraDataBulkLoaderMetaMock.getFieldTable() ).thenReturn( fieldTable );
  when( teraDataBulkLoaderMetaMock.getFieldStream() ).thenReturn( fieldStream );
  when( teraDataBulkLoaderMetaMock.getFieldUpdate() ).thenReturn( fieldUpdate );
  when( teraDataBulkLoaderMetaMock.getKeyStream() ).thenReturn( new String[] {} );
  String upsertCommand = this.teraDataBulkLoaderRoutines.createUpsertCommand( true );
  assertEquals( true, upsertCommand.startsWith( "' UPDATE " + schemaName + "." + tableName + " SET\n"  ) );
}