### Question:
PGBulkLoader extends BaseTransform<PGBulkLoaderMeta, PGBulkLoaderData> implements ITransform<PGBulkLoaderMeta, PGBulkLoaderData> { public boolean init(){ String enclosure = environmentSubstitute( meta.getEnclosure() ); String separator = environmentSubstitute( meta.getDelimiter() ); if ( super.init() ) { try { verifyDatabaseConnection(); } catch ( HopException ex ) { logError( ex.getMessage() ); return false; } if ( enclosure != null ) { data.quote = enclosure.getBytes(); } else { data.quote = new byte[] {}; } if ( separator != null ) { data.separator = separator.getBytes(); } else { data.separator = new byte[] {}; } data.newline = Const.CR.getBytes(); data.dateFormatChoices = new int[ meta.getFieldStream().length ]; for ( int i = 0; i < data.dateFormatChoices.length; i++ ) { if ( Utils.isEmpty( meta.getDateMask()[ i ] ) ) { data.dateFormatChoices[ i ] = PGBulkLoaderMeta.NR_DATE_MASK_PASS_THROUGH; } else if ( meta.getDateMask()[ i ].equalsIgnoreCase( PGBulkLoaderMeta.DATE_MASK_DATE ) ) { data.dateFormatChoices[ i ] = PGBulkLoaderMeta.NR_DATE_MASK_DATE; } else if ( meta.getDateMask()[ i ].equalsIgnoreCase( PGBulkLoaderMeta.DATE_MASK_DATETIME ) ) { data.dateFormatChoices[ i ] = PGBulkLoaderMeta.NR_DATE_MASK_DATETIME; } else { data.dateFormatChoices[ i ] = PGBulkLoaderMeta.NR_DATE_MASK_PASS_THROUGH; } } return true; } return false; } PGBulkLoader( TransformMeta transformMeta, PGBulkLoaderMeta meta, PGBulkLoaderData data, int copyNr, PipelineMeta pipelineMeta,
                       Pipeline pipeline ); String getCopyCommand(); boolean processRow(); boolean init();  }### Answer:
@Test public void testProcessRow_StreamIsNull() throws Exception { PGBulkLoader pgBulkLoaderStreamIsNull = mock( PGBulkLoader.class ); doReturn( null ).when( pgBulkLoaderStreamIsNull ).getRow(); PGBulkLoaderMeta meta = mock( PGBulkLoaderMeta.class ); PGBulkLoaderData data = mock( PGBulkLoaderData.class ); assertEquals( false, pgBulkLoaderStreamIsNull.init() ); }