  @Test public void testSet( ) {


    try {

      Block block = genBlockFullObject( _noOfRows, _noOfCols );

      for( int i = 0; i < block.getNoOfRows( ); i++ )
        for( int j = 0; j < block.getNoOfCols( ); j++ )
          block.set( i, j, (double)( i + j + 1 ) );

      for( int i = 0; i < block.getNoOfRows( ); i++ )
        for( int j = 0; j < block.getNoOfCols( ); j++ )
          assertEquals( (double)( i + j + 1 ), block.get( i, j ), 0. );

      block = genBlockHashObject( _noOfRows, _noOfCols );

      for( int i = 0; i < block.getNoOfRows( ); i++ )
        for( int j = 0; j < block.getNoOfCols( ); j++ )
          block.set( i, j, (double)( i + j + 1 ) );

      for( int i = 0; i < block.getNoOfRows( ); i++ )
        for( int j = 0; j < block.getNoOfCols( ); j++ )
          assertEquals( (double)( i + j + 1 ), block.get( i, j ), 0. );

    } catch( JWaveException e ) {
      e.printStackTrace( );
      fail( "caught exception" );
    } // try 

  }