Program: 140828
Project: 140828
Buggy source:
@Test public void testU1123() throws IOException, ParseException {
  final String nitf20File="String_Node_Str";
  assertNotNull("String_Node_Str",getClass().getResource(nitf20File));
  InputStream is=getClass().getResourceAsStream(nitf20File);
  NitfFile file=new NitfFile();
  file.parse(is,EnumSet.allOf(ParseOption.class));
  assertEquals(FileType.NITF_TWO_ZERO,file.getFileType());
  assertEquals(1,file.getComplexityLevel());
  assertEquals("String_Node_Str",file.getStandardType());
  assertEquals("String_Node_Str",file.getOriginatingStationId());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(file.getFileDateTime()));
  assertEquals("String_Node_Str",file.getFileTitle());
  NitfFileSecurityMetadata securityMetadata=file.getFileSecurityMetadata();
  assertUnclasAndEmpty(securityMetadata);
  assertEquals("String_Node_Str",securityMetadata.getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",securityMetadata.getDowngradeEvent());
  assertEquals("String_Node_Str",file.getFileSecurityMetadata().getFileCopyNumber());
  assertEquals("String_Node_Str",file.getFileSecurityMetadata().getFileNumberOfCopies());
  assertEquals("String_Node_Str",file.getOriginatorsName());
  assertEquals("String_Node_Str",file.getOriginatorsPhoneNumber());
  assertEquals(5,file.getNumberOfImageSegments());
  assertEquals(0,file.getNumberOfGraphicSegments());
  assertEquals(4,file.getNumberOfSymbolSegments());
  assertEquals(4,file.getNumberOfLabelSegments());
  assertEquals(1,file.getNumberOfTextSegments());
  assertEquals(0,file.getNumberOfDataExtensionSegments());
  NitfImageSegment imageSegment1=file.getImageSegment(1);
  assertNotNull(imageSegment1);
  assertEquals("String_Node_Str",imageSegment1.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment1.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment1.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment1.getImageTargetId());
  assertUnclasAndEmpty(imageSegment1.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment1.getImageSource());
  assertEquals(1024L,imageSegment1.getNumberOfRows());
  assertEquals(1024L,imageSegment1.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment1.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment1.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment1.getImageCategory());
  assertEquals(8,imageSegment1.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment1.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment1.getImageCoordinatesRepresentation());
  assertEquals(0,imageSegment1.getNumberOfImageComments());
  assertEquals(ImageCompression.NOTCOMPRESSED,imageSegment1.getImageCompression());
  assertEquals(1,imageSegment1.getNumBands());
  NitfImageBand band1=imageSegment1.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment1.getImageMode());
  assertEquals(1,imageSegment1.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment1.getNumberOfBlocksPerColumn());
  assertEquals(1024,imageSegment1.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(1024,imageSegment1.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment1.getNumberOfBitsPerPixelPerBand());
  assertEquals(1,imageSegment1.getImageDisplayLevel());
  assertEquals(0,imageSegment1.getImageAttachmentLevel());
  assertEquals(0,imageSegment1.getImageLocationRow());
  assertEquals(0,imageSegment1.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment1.getImageMagnification());
  assertEquals(1.0,imageSegment1.getImageMagnificationAsDouble(),0.00000001);
  NitfImageSegment imageSegment2=file.getImageSegment(2);
  assertNotNull(imageSegment2);
  assertEquals("String_Node_Str",imageSegment2.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment2.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment2.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment2.getImageTargetId());
  assertUnclasAndEmpty(imageSegment2.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment2.getImageSource());
  assertEquals(64L,imageSegment2.getNumberOfRows());
  assertEquals(64L,imageSegment2.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment2.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment2.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment2.getImageCategory());
  assertEquals(1,imageSegment2.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment2.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment2.getImageCoordinatesRepresentation());
  assertEquals(0,imageSegment2.getNumberOfImageComments());
  assertEquals(ImageCompression.BILEVEL,imageSegment2.getImageCompression());
  assertEquals(1,imageSegment2.getNumBands());
  band1=imageSegment2.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment2.getImageMode());
  assertEquals(1,imageSegment2.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment2.getNumberOfBlocksPerColumn());
  assertEquals(64,imageSegment2.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(64,imageSegment2.getNumberOfPixelsPerBlockVertical());
  assertEquals(1,imageSegment2.getNumberOfBitsPerPixelPerBand());
  assertEquals(8,imageSegment2.getImageDisplayLevel());
  assertEquals(2,imageSegment2.getImageAttachmentLevel());
  assertEquals(150,imageSegment2.getImageLocationRow());
  assertEquals(0,imageSegment2.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment2.getImageMagnification());
  NitfImageSegment imageSegment3=file.getImageSegment(3);
  assertNotNull(imageSegment3);
  assertEquals("String_Node_Str",imageSegment3.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment3.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment3.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment3.getImageTargetId());
  assertUnclasAndEmpty(imageSegment3.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment3.getImageSource());
  assertEquals(64L,imageSegment3.getNumberOfRows());
  assertEquals(64L,imageSegment3.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment3.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment3.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment3.getImageCategory());
  assertEquals(8,imageSegment3.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment3.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment3.getImageCoordinatesRepresentation());
  assertEquals(9,imageSegment3.getNumberOfImageComments());
  assertEquals("String_Node_Str",imageSegment3.getImageComment(1));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(2));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(3));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(4));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(5));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(6));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(7));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(8));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(9));
  assertEquals(ImageCompression.NOTCOMPRESSED,imageSegment3.getImageCompression());
  assertEquals(1,imageSegment3.getNumBands());
  band1=imageSegment3.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment3.getImageMode());
  assertEquals(1,imageSegment3.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment3.getNumberOfBlocksPerColumn());
  assertEquals(64,imageSegment3.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(64,imageSegment3.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment3.getNumberOfBitsPerPixelPerBand());
  assertEquals(12,imageSegment3.getImageDisplayLevel());
  assertEquals(11,imageSegment3.getImageAttachmentLevel());
  assertEquals(10,imageSegment3.getImageLocationRow());
  assertEquals(10,imageSegment3.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment3.getImageMagnification());
  NitfImageSegment imageSegment4=file.getImageSegment(4);
  assertNotNull(imageSegment4);
  assertEquals("String_Node_Str",imageSegment4.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment4.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment4.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment4.getImageTargetId());
  assertUnclasAndEmpty(imageSegment4.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment4.getImageSource());
  assertEquals(191L,imageSegment4.getNumberOfRows());
  assertEquals(231L,imageSegment4.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment4.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment4.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment4.getImageCategory());
  assertEquals(8,imageSegment4.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment4.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment4.getImageCoordinatesRepresentation());
  assertEquals(0,imageSegment4.getNumberOfImageComments());
  assertEquals(ImageCompression.JPEG,imageSegment4.getImageCompression());
  assertEquals(1,imageSegment4.getNumBands());
  band1=imageSegment4.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment4.getImageMode());
  assertEquals(1,imageSegment4.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment4.getNumberOfBlocksPerColumn());
  assertEquals(231,imageSegment4.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(191,imageSegment4.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment4.getNumberOfBitsPerPixelPerBand());
  assertEquals(5,imageSegment4.getImageDisplayLevel());
  assertEquals(1,imageSegment4.getImageAttachmentLevel());
  assertEquals(40,imageSegment4.getImageLocationRow());
  assertEquals(220,imageSegment4.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment4.getImageMagnification());
  NitfImageSegment imageSegment5=file.getImageSegment(5);
  assertNotNull(imageSegment5);
  assertEquals("String_Node_Str",imageSegment5.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment5.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment5.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment5.getImageTargetId());
  assertUnclasAndEmpty(imageSegment5.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment5.getImageSource());
  assertEquals(73L,imageSegment5.getNumberOfRows());
  assertEquals(181L,imageSegment5.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment5.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment5.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment5.getImageCategory());
  assertEquals(8,imageSegment5.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment5.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment5.getImageCoordinatesRepresentation());
  assertEquals(9,imageSegment5.getNumberOfImageComments());
  assertEquals("String_Node_Str",imageSegment5.getImageComment(1));
  assertEquals("String_Node_Str",imageSegment5.getImageComment(9));
  assertEquals(ImageCompression.JPEG,imageSegment5.getImageCompression());
  assertEquals(1,imageSegment5.getNumBands());
  band1=imageSegment5.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment5.getImageMode());
  assertEquals(1,imageSegment5.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment5.getNumberOfBlocksPerColumn());
  assertEquals(181,imageSegment5.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(73,imageSegment5.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment5.getNumberOfBitsPerPixelPerBand());
  assertEquals(2,imageSegment5.getImageDisplayLevel());
  assertEquals(1,imageSegment5.getImageAttachmentLevel());
  assertEquals(65,imageSegment5.getImageLocationRow());
  assertEquals(30,imageSegment5.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment5.getImageMagnification());
  NitfSymbolSegment symbolSegment1=file.getSymbolSegment(1);
  assertNotNull(symbolSegment1);
  NitfTextSegment textSegment=file.getTextSegment(1);
  assertNotNull(textSegment);
  assertEquals("String_Node_Str",textSegment.getTextIdentifier());
  assertEquals(0,textSegment.getTextAttachmentLevel());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(textSegment.getTextDateTime()));
  assertEquals("String_Node_Str",textSegment.getTextTitle());
  NitfSecurityMetadata textSecurityMetadata=textSegment.getSecurityMetadata();
  assertUnclasAndEmpty(textSecurityMetadata);
  assertEquals("String_Node_Str",textSecurityMetadata.getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",textSecurityMetadata.getDowngradeEvent());
  assertEquals(TextFormat.BASICCHARACTERSET,textSegment.getTextFormat());
  assertEquals("String_Node_Str",textSegment.getTextData());
  is.close();
}

Fixed version (ground truth):
@Test public void testU1123() throws IOException, ParseException {
  final String nitf20File="String_Node_Str";
  assertNotNull("String_Node_Str",getClass().getResource(nitf20File));
  InputStream is=getClass().getResourceAsStream(nitf20File);
  NitfFile file=new NitfFile();
  file.parse(is,EnumSet.allOf(ParseOption.class));
  assertEquals(FileType.NITF_TWO_ZERO,file.getFileType());
  assertEquals(1,file.getComplexityLevel());
  assertEquals("String_Node_Str",file.getStandardType());
  assertEquals("String_Node_Str",file.getOriginatingStationId());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(file.getFileDateTime()));
  assertEquals("String_Node_Str",file.getFileTitle());
  NitfFileSecurityMetadata securityMetadata=file.getFileSecurityMetadata();
  assertUnclasAndEmpty(securityMetadata);
  assertEquals("String_Node_Str",securityMetadata.getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",securityMetadata.getDowngradeEvent());
  assertEquals("String_Node_Str",file.getFileSecurityMetadata().getFileCopyNumber());
  assertEquals("String_Node_Str",file.getFileSecurityMetadata().getFileNumberOfCopies());
  assertEquals("String_Node_Str",file.getOriginatorsName());
  assertEquals("String_Node_Str",file.getOriginatorsPhoneNumber());
  assertEquals(5,file.getNumberOfImageSegments());
  assertEquals(0,file.getNumberOfGraphicSegments());
  assertEquals(4,file.getNumberOfSymbolSegments());
  assertEquals(4,file.getNumberOfLabelSegments());
  assertEquals(1,file.getNumberOfTextSegments());
  assertEquals(0,file.getNumberOfDataExtensionSegments());
  NitfImageSegment imageSegment1=file.getImageSegment(1);
  assertNotNull(imageSegment1);
  assertEquals("String_Node_Str",imageSegment1.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment1.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment1.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment1.getImageTargetId());
  assertUnclasAndEmpty(imageSegment1.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment1.getImageSource());
  assertEquals(1024L,imageSegment1.getNumberOfRows());
  assertEquals(1024L,imageSegment1.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment1.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment1.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment1.getImageCategory());
  assertEquals(8,imageSegment1.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment1.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment1.getImageCoordinatesRepresentation());
  assertEquals(0,imageSegment1.getNumberOfImageComments());
  assertEquals(ImageCompression.NOTCOMPRESSED,imageSegment1.getImageCompression());
  assertEquals(1,imageSegment1.getNumBands());
  NitfImageBand band1=imageSegment1.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment1.getImageMode());
  assertEquals(1,imageSegment1.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment1.getNumberOfBlocksPerColumn());
  assertEquals(1024,imageSegment1.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(1024,imageSegment1.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment1.getNumberOfBitsPerPixelPerBand());
  assertEquals(1,imageSegment1.getImageDisplayLevel());
  assertEquals(0,imageSegment1.getImageAttachmentLevel());
  assertEquals(0,imageSegment1.getImageLocationRow());
  assertEquals(0,imageSegment1.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment1.getImageMagnification());
  assertEquals(1.0,imageSegment1.getImageMagnificationAsDouble(),0.00000001);
  NitfImageSegment imageSegment2=file.getImageSegment(2);
  assertNotNull(imageSegment2);
  assertEquals("String_Node_Str",imageSegment2.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment2.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment2.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment2.getImageTargetId());
  assertUnclasAndEmpty(imageSegment2.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment2.getImageSource());
  assertEquals(64L,imageSegment2.getNumberOfRows());
  assertEquals(64L,imageSegment2.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment2.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment2.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment2.getImageCategory());
  assertEquals(1,imageSegment2.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment2.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment2.getImageCoordinatesRepresentation());
  assertEquals(0,imageSegment2.getNumberOfImageComments());
  assertEquals(ImageCompression.BILEVEL,imageSegment2.getImageCompression());
  assertEquals(1,imageSegment2.getNumBands());
  band1=imageSegment2.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment2.getImageMode());
  assertEquals(1,imageSegment2.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment2.getNumberOfBlocksPerColumn());
  assertEquals(64,imageSegment2.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(64,imageSegment2.getNumberOfPixelsPerBlockVertical());
  assertEquals(1,imageSegment2.getNumberOfBitsPerPixelPerBand());
  assertEquals(8,imageSegment2.getImageDisplayLevel());
  assertEquals(2,imageSegment2.getImageAttachmentLevel());
  assertEquals(150,imageSegment2.getImageLocationRow());
  assertEquals(0,imageSegment2.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment2.getImageMagnification());
  NitfImageSegment imageSegment3=file.getImageSegment(3);
  assertNotNull(imageSegment3);
  assertEquals("String_Node_Str",imageSegment3.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment3.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment3.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment3.getImageTargetId());
  assertUnclasAndEmpty(imageSegment3.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment3.getImageSource());
  assertEquals(64L,imageSegment3.getNumberOfRows());
  assertEquals(64L,imageSegment3.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment3.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment3.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment3.getImageCategory());
  assertEquals(8,imageSegment3.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment3.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment3.getImageCoordinatesRepresentation());
  assertEquals(9,imageSegment3.getNumberOfImageComments());
  assertEquals("String_Node_Str",imageSegment3.getImageComment(1));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(2));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(3));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(4));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(5));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(6));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(7));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(8));
  assertEquals("String_Node_Str",imageSegment3.getImageComment(9));
  assertEquals(ImageCompression.NOTCOMPRESSED,imageSegment3.getImageCompression());
  assertEquals(1,imageSegment3.getNumBands());
  band1=imageSegment3.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment3.getImageMode());
  assertEquals(1,imageSegment3.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment3.getNumberOfBlocksPerColumn());
  assertEquals(64,imageSegment3.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(64,imageSegment3.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment3.getNumberOfBitsPerPixelPerBand());
  assertEquals(12,imageSegment3.getImageDisplayLevel());
  assertEquals(11,imageSegment3.getImageAttachmentLevel());
  assertEquals(10,imageSegment3.getImageLocationRow());
  assertEquals(10,imageSegment3.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment3.getImageMagnification());
  NitfImageSegment imageSegment4=file.getImageSegment(4);
  assertNotNull(imageSegment4);
  assertEquals("String_Node_Str",imageSegment4.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment4.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment4.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment4.getImageTargetId());
  assertUnclasAndEmpty(imageSegment4.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment4.getImageSource());
  assertEquals(191L,imageSegment4.getNumberOfRows());
  assertEquals(231L,imageSegment4.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment4.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment4.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment4.getImageCategory());
  assertEquals(8,imageSegment4.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment4.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment4.getImageCoordinatesRepresentation());
  assertEquals(0,imageSegment4.getNumberOfImageComments());
  assertEquals(ImageCompression.JPEG,imageSegment4.getImageCompression());
  assertEquals(1,imageSegment4.getNumBands());
  band1=imageSegment4.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment4.getImageMode());
  assertEquals(1,imageSegment4.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment4.getNumberOfBlocksPerColumn());
  assertEquals(231,imageSegment4.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(191,imageSegment4.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment4.getNumberOfBitsPerPixelPerBand());
  assertEquals(5,imageSegment4.getImageDisplayLevel());
  assertEquals(1,imageSegment4.getImageAttachmentLevel());
  assertEquals(40,imageSegment4.getImageLocationRow());
  assertEquals(220,imageSegment4.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment4.getImageMagnification());
  NitfImageSegment imageSegment5=file.getImageSegment(5);
  assertNotNull(imageSegment5);
  assertEquals("String_Node_Str",imageSegment5.getImageIdentifier1());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(imageSegment5.getImageDateTime()));
  assertEquals("String_Node_Str",imageSegment5.getImageIdentifier2());
  assertEquals("String_Node_Str",imageSegment5.getImageTargetId());
  assertUnclasAndEmpty(imageSegment5.getSecurityMetadata());
  assertEquals("String_Node_Str",imageSegment5.getImageSource());
  assertEquals(73L,imageSegment5.getNumberOfRows());
  assertEquals(181L,imageSegment5.getNumberOfColumns());
  assertEquals(PixelValueType.INTEGER,imageSegment5.getPixelValueType());
  assertEquals(ImageRepresentation.MONOCHROME,imageSegment5.getImageRepresentation());
  assertEquals(ImageCategory.VISUAL,imageSegment5.getImageCategory());
  assertEquals(8,imageSegment5.getActualBitsPerPixelPerBand());
  assertEquals(PixelJustification.RIGHT,imageSegment5.getPixelJustification());
  assertEquals(ImageCoordinatesRepresentation.NONE,imageSegment5.getImageCoordinatesRepresentation());
  assertEquals(9,imageSegment5.getNumberOfImageComments());
  assertEquals("String_Node_Str",imageSegment5.getImageComment(1));
  assertEquals("String_Node_Str",imageSegment5.getImageComment(9));
  assertEquals(ImageCompression.JPEG,imageSegment5.getImageCompression());
  assertEquals(1,imageSegment5.getNumBands());
  band1=imageSegment5.getImageBand(1);
  assertNotNull(band1);
  assertEquals("String_Node_Str",band1.getImageRepresentation());
  assertEquals("String_Node_Str",band1.getSubCategory());
  assertEquals(0,band1.getNumLUTs());
  assertEquals(0,band1.getNumLUTEntries());
  assertEquals(ImageMode.BLOCKINTERLEVE,imageSegment5.getImageMode());
  assertEquals(1,imageSegment5.getNumberOfBlocksPerRow());
  assertEquals(1,imageSegment5.getNumberOfBlocksPerColumn());
  assertEquals(181,imageSegment5.getNumberOfPixelsPerBlockHorizontal());
  assertEquals(73,imageSegment5.getNumberOfPixelsPerBlockVertical());
  assertEquals(8,imageSegment5.getNumberOfBitsPerPixelPerBand());
  assertEquals(2,imageSegment5.getImageDisplayLevel());
  assertEquals(1,imageSegment5.getImageAttachmentLevel());
  assertEquals(65,imageSegment5.getImageLocationRow());
  assertEquals(30,imageSegment5.getImageLocationColumn());
  assertEquals("String_Node_Str",imageSegment5.getImageMagnification());
  NitfSymbolSegment symbolSegment1=file.getSymbolSegment(1);
  assertNotNull(symbolSegment1);
  assertEquals("String_Node_Str",symbolSegment1.getSymbolIdentifier());
  assertEquals("String_Node_Str",symbolSegment1.getSymbolName());
  assertUnclasAndEmpty(symbolSegment1.getSecurityMetadata());
  assertEquals("String_Node_Str",symbolSegment1.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",symbolSegment1.getSecurityMetadata().getDowngradeEvent());
  assertEquals("String_Node_Str",symbolSegment1.getSymbolType());
  assertEquals(SymbolColour.ZERO_TRANSPARENT_ONE_BLACK,symbolSegment1.getSymbolColour());
  assertEquals(7,symbolSegment1.getNumberOfLinesPerSymbol());
  assertEquals(7,symbolSegment1.getNumberOfPixelsPerLine());
  assertEquals(0,symbolSegment1.getLineWidth());
  assertEquals(1,symbolSegment1.getNumberOfBitsPerPixel());
  assertEquals(3,symbolSegment1.getSymbolDisplayLevel());
  assertEquals(1,symbolSegment1.getSymbolAttachmentLevel());
  assertEquals(62,symbolSegment1.getSymbolLocationRow());
  assertEquals(170,symbolSegment1.getSymbolLocationColumn());
  assertEquals(0,symbolSegment1.getSymbolLocation2Row());
  assertEquals(0,symbolSegment1.getSymbolLocation2Column());
  assertEquals("String_Node_Str",symbolSegment1.getSymbolNumber());
  assertEquals(0,symbolSegment1.getSymbolRotation());
  assertEquals(7,symbolSegment1.getSymbolData().length);
  NitfSymbolSegment symbolSegment2=file.getSymbolSegment(2);
  assertNotNull(symbolSegment2);
  assertEquals("String_Node_Str",symbolSegment2.getSymbolIdentifier());
  assertEquals("String_Node_Str",symbolSegment2.getSymbolName());
  assertUnclasAndEmpty(symbolSegment2.getSecurityMetadata());
  assertEquals("String_Node_Str",symbolSegment2.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",symbolSegment2.getSecurityMetadata().getDowngradeEvent());
  assertEquals("String_Node_Str",symbolSegment2.getSymbolType());
  assertEquals(SymbolColour.ZERO_TRANSPARENT_ONE_BLACK,symbolSegment2.getSymbolColour());
  assertEquals(18,symbolSegment2.getNumberOfLinesPerSymbol());
  assertEquals(35,symbolSegment2.getNumberOfPixelsPerLine());
  assertEquals(0,symbolSegment2.getLineWidth());
  assertEquals(1,symbolSegment2.getNumberOfBitsPerPixel());
  assertEquals(7,symbolSegment2.getSymbolDisplayLevel());
  assertEquals(5,symbolSegment2.getSymbolAttachmentLevel());
  assertEquals(100,symbolSegment2.getSymbolLocationRow());
  assertEquals(100,symbolSegment2.getSymbolLocationColumn());
  assertEquals(0,symbolSegment2.getSymbolLocation2Row());
  assertEquals(0,symbolSegment2.getSymbolLocation2Column());
  assertEquals("String_Node_Str",symbolSegment2.getSymbolNumber());
  assertEquals(0,symbolSegment2.getSymbolRotation());
  assertEquals(79,symbolSegment2.getSymbolData().length);
  NitfSymbolSegment symbolSegment3=file.getSymbolSegment(3);
  assertNotNull(symbolSegment3);
  assertEquals("String_Node_Str",symbolSegment3.getSymbolIdentifier());
  assertEquals("String_Node_Str",symbolSegment3.getSymbolName());
  assertUnclasAndEmpty(symbolSegment3.getSecurityMetadata());
  assertEquals("String_Node_Str",symbolSegment3.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",symbolSegment3.getSecurityMetadata().getDowngradeEvent());
  assertEquals("String_Node_Str",symbolSegment3.getSymbolType());
  assertEquals(SymbolColour.ZERO_TRANSPARENT_ONE_BLACK,symbolSegment3.getSymbolColour());
  assertEquals(18,symbolSegment3.getNumberOfLinesPerSymbol());
  assertEquals(35,symbolSegment3.getNumberOfPixelsPerLine());
  assertEquals(0,symbolSegment3.getLineWidth());
  assertEquals(1,symbolSegment3.getNumberOfBitsPerPixel());
  assertEquals(9,symbolSegment3.getSymbolDisplayLevel());
  assertEquals(8,symbolSegment3.getSymbolAttachmentLevel());
  assertEquals(25,symbolSegment3.getSymbolLocationRow());
  assertEquals(25,symbolSegment3.getSymbolLocationColumn());
  assertEquals(0,symbolSegment3.getSymbolLocation2Row());
  assertEquals(0,symbolSegment3.getSymbolLocation2Column());
  assertEquals("String_Node_Str",symbolSegment3.getSymbolNumber());
  assertEquals(0,symbolSegment3.getSymbolRotation());
  assertEquals(79,symbolSegment3.getSymbolData().length);
  NitfSymbolSegment symbolSegment4=file.getSymbolSegment(4);
  assertNotNull(symbolSegment4);
  assertEquals("String_Node_Str",symbolSegment4.getSymbolIdentifier());
  assertEquals("String_Node_Str",symbolSegment4.getSymbolName());
  assertUnclasAndEmpty(symbolSegment4.getSecurityMetadata());
  assertEquals("String_Node_Str",symbolSegment4.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",symbolSegment4.getSecurityMetadata().getDowngradeEvent());
  assertEquals("String_Node_Str",symbolSegment4.getSymbolType());
  assertEquals(SymbolColour.ZERO_TRANSPARENT_ONE_BLACK,symbolSegment4.getSymbolColour());
  assertEquals(17,symbolSegment4.getNumberOfLinesPerSymbol());
  assertEquals(35,symbolSegment4.getNumberOfPixelsPerLine());
  assertEquals(0,symbolSegment4.getLineWidth());
  assertEquals(1,symbolSegment4.getNumberOfBitsPerPixel());
  assertEquals(11,symbolSegment4.getSymbolDisplayLevel());
  assertEquals(1,symbolSegment4.getSymbolAttachmentLevel());
  assertEquals(400,symbolSegment4.getSymbolLocationRow());
  assertEquals(400,symbolSegment4.getSymbolLocationColumn());
  assertEquals(0,symbolSegment4.getSymbolLocation2Row());
  assertEquals(0,symbolSegment4.getSymbolLocation2Column());
  assertEquals("String_Node_Str",symbolSegment4.getSymbolNumber());
  assertEquals(0,symbolSegment4.getSymbolRotation());
  assertEquals(75,symbolSegment4.getSymbolData().length);
  NitfLabelSegment labelSegment1=file.getLabelSegment(1);
  assertNotNull(labelSegment1);
  assertEquals("String_Node_Str",labelSegment1.getLabelIdentifier());
  assertUnclasAndEmpty(labelSegment1.getSecurityMetadata());
  assertEquals("String_Node_Str",labelSegment1.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",labelSegment1.getSecurityMetadata().getDowngradeEvent());
  assertEquals(20,labelSegment1.getLabelLocationRow());
  assertEquals(160,labelSegment1.getLabelLocationColumn());
  assertEquals(0,labelSegment1.getLabelCellWidth());
  assertEquals(0,labelSegment1.getLabelCellHeight());
  assertEquals(4,labelSegment1.getLabelDisplayLevel());
  assertEquals(2,labelSegment1.getLabelAttachmentLevel());
  assertEquals(1,labelSegment1.getLabelTextColour().getRed());
  assertEquals(1,labelSegment1.getLabelTextColour().getGreen());
  assertEquals(1,labelSegment1.getLabelTextColour().getBlue());
  assertEquals(0,labelSegment1.getLabelBackgroundColour().getRed());
  assertEquals(0,labelSegment1.getLabelBackgroundColour().getGreen());
  assertEquals(0,labelSegment1.getLabelBackgroundColour().getBlue());
  assertEquals("String_Node_Str",labelSegment1.getLabelData());
  NitfLabelSegment labelSegment2=file.getLabelSegment(2);
  assertNotNull(labelSegment2);
  assertEquals("String_Node_Str",labelSegment2.getLabelIdentifier());
  assertUnclasAndEmpty(labelSegment2.getSecurityMetadata());
  assertEquals("String_Node_Str",labelSegment2.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",labelSegment2.getSecurityMetadata().getDowngradeEvent());
  assertEquals(100,labelSegment2.getLabelLocationRow());
  assertEquals(100,labelSegment2.getLabelLocationColumn());
  assertEquals(0,labelSegment2.getLabelCellWidth());
  assertEquals(0,labelSegment2.getLabelCellHeight());
  assertEquals(6,labelSegment2.getLabelDisplayLevel());
  assertEquals(5,labelSegment2.getLabelAttachmentLevel());
  assertEquals(1,labelSegment2.getLabelTextColour().getRed());
  assertEquals(1,labelSegment2.getLabelTextColour().getGreen());
  assertEquals(1,labelSegment2.getLabelTextColour().getBlue());
  assertEquals(0,labelSegment2.getLabelBackgroundColour().getRed());
  assertEquals(0,labelSegment2.getLabelBackgroundColour().getGreen());
  assertEquals(0,labelSegment2.getLabelBackgroundColour().getBlue());
  assertEquals("String_Node_Str",labelSegment2.getLabelData());
  NitfLabelSegment labelSegment3=file.getLabelSegment(3);
  assertNotNull(labelSegment3);
  assertEquals("String_Node_Str",labelSegment3.getLabelIdentifier());
  assertUnclasAndEmpty(labelSegment3.getSecurityMetadata());
  assertEquals("String_Node_Str",labelSegment3.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",labelSegment3.getSecurityMetadata().getDowngradeEvent());
  assertEquals(-20,labelSegment3.getLabelLocationRow());
  assertEquals(-20,labelSegment3.getLabelLocationColumn());
  assertEquals(0,labelSegment3.getLabelCellWidth());
  assertEquals(0,labelSegment3.getLabelCellHeight());
  assertEquals(10,labelSegment3.getLabelDisplayLevel());
  assertEquals(9,labelSegment3.getLabelAttachmentLevel());
  assertEquals(1,labelSegment3.getLabelTextColour().getRed());
  assertEquals(1,labelSegment3.getLabelTextColour().getGreen());
  assertEquals(1,labelSegment3.getLabelTextColour().getBlue());
  assertEquals(0,labelSegment3.getLabelBackgroundColour().getRed());
  assertEquals(0,labelSegment3.getLabelBackgroundColour().getGreen());
  assertEquals(0,labelSegment3.getLabelBackgroundColour().getBlue());
  assertEquals("String_Node_Str",labelSegment3.getLabelData());
  NitfLabelSegment labelSegment4=file.getLabelSegment(4);
  assertNotNull(labelSegment4);
  assertEquals("String_Node_Str",labelSegment4.getLabelIdentifier());
  assertUnclasAndEmpty(labelSegment4.getSecurityMetadata());
  assertEquals("String_Node_Str",labelSegment4.getSecurityMetadata().getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",labelSegment4.getSecurityMetadata().getDowngradeEvent());
  assertEquals(0,labelSegment4.getLabelLocationRow());
  assertEquals(25,labelSegment4.getLabelLocationColumn());
  assertEquals(0,labelSegment4.getLabelCellWidth());
  assertEquals(0,labelSegment4.getLabelCellHeight());
  assertEquals(13,labelSegment4.getLabelDisplayLevel());
  assertEquals(11,labelSegment4.getLabelAttachmentLevel());
  assertEquals(1,labelSegment4.getLabelTextColour().getRed());
  assertEquals(1,labelSegment4.getLabelTextColour().getGreen());
  assertEquals(1,labelSegment4.getLabelTextColour().getBlue());
  assertEquals(0,labelSegment4.getLabelBackgroundColour().getRed());
  assertEquals(0,labelSegment4.getLabelBackgroundColour().getGreen());
  assertEquals(0,labelSegment4.getLabelBackgroundColour().getBlue());
  assertEquals("String_Node_Str",labelSegment4.getLabelData());
  NitfTextSegment textSegment=file.getTextSegment(1);
  assertNotNull(textSegment);
  assertEquals("String_Node_Str",textSegment.getTextIdentifier());
  assertEquals(0,textSegment.getTextAttachmentLevel());
  assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format(textSegment.getTextDateTime()));
  assertEquals("String_Node_Str",textSegment.getTextTitle());
  NitfSecurityMetadata textSecurityMetadata=textSegment.getSecurityMetadata();
  assertUnclasAndEmpty(textSecurityMetadata);
  assertEquals("String_Node_Str",textSecurityMetadata.getDowngradeDateOrSpecialCase());
  assertEquals("String_Node_Str",textSecurityMetadata.getDowngradeEvent());
  assertEquals(TextFormat.BASICCHARACTERSET,textSegment.getTextFormat());
  assertEquals("String_Node_Str",textSegment.getTextData());
  is.close();
}