throws IOException, InvalidRangeException
{
File testDataDir = new File( TestAll.cdmLocalTestDataDir, "ucar/nc2/iosp/netcdf3" );
File testFile = new File( testDataDir, "byteArrayRecordVarPaddingTest-bad.nc" );
assertTrue( testFile.exists());
assertTrue( testFile.canRead());
NetcdfFile ncf = NetcdfFile.open( testFile.getPath() );
Variable readVar = ncf.findVariable( "V" );
assertEquals( readVar.getDataType(), DataType.BYTE );
assertEquals( 1, readVar.getElementSize() );