@Test
public void getDdlOptionsTest() {

  when( teraDataBulkLoaderMetaMock.getDatabaseMeta() ).thenReturn( dataBaseMetaDataMock );
  when( dataBaseMetaDataMock.getHostname() ).thenReturn( "hostname" );
  when( dataBaseMetaDataMock.getUsername() ).thenReturn( "username" );
  when( dataBaseMetaDataMock.getPassword() ).thenReturn( "passwordFromMeta" );
  setInternalState( teraDataBulkLoaderRoutines, "parent", teraDataBulkLoaderMock );
  String password = "myPassword";
  String expectedDdlOptionsPreview = "DEFINE OPERATOR DDL_OPERATOR\n"
    + "TYPE DDL\n"
    + "ATTRIBUTES\n"
    + "  (\n"
    + "     VARCHAR TdpId              = 'hostname',\n"
    + "     VARCHAR UserName           = 'username',\n"
    + "     VARCHAR UserPassword       = 'passwordFromMeta',\n"
    + "     VARCHAR ErrorList          = '3807'\n"
    + "  );\n";
  assertEquals( expectedDdlOptionsPreview, teraDataBulkLoaderRoutines.getDdlOptions( false, password ).toString() );
}