@Test
public void testImageAttributes() {

  ImageAttribute.getAttributes()
      .forEach(
          attribute ->
              assertThat(attribute.getShortName(), is(org.hamcrest.Matchers.notNullValue())));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_1_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_1));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_2_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_2));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_3_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_3));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_4_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_4));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_5_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_5));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_6_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_6));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_7_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_7));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_8_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_8));
  assertThat(
      ImageAttribute.IMAGE_COMMENT_9_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(COMMENT_9));
  assertThat(
      ImageAttribute.NITF_TARGET_IDENTIFIER_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(nullValue()));
  assertThat(
      ImageAttribute.ISR_TARGET_IDENTIFIER_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(nullValue()));
  assertThat(
      ImageAttribute.TARGET_IDENTIFIER_COUNTRY_CODE_ATTRIBUTE
          .getAccessorFunction()
          .apply(imageSegment),
      is(nullValue()));
  assertThat(
      ImageAttribute.TARGET_IDENTIFIER_COUNTRY_CODE_ATTRIBUTE
          .getAccessorFunction()
          .apply(imageSegment),
      is(nullValue()));
  assertThat(
      ImageAttribute.IMAGE_DATE_AND_TIME_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(nullValue()));
  assertThat(
      ImageAttribute.IMAGE_IDENTIFIER_2_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(nullValue()));
  assertThat(
      ImageAttribute.NUMBER_OF_SIGNIFICANT_ROWS_IN_IMAGE_ATTRIBUTE
          .getAccessorFunction()
          .apply(imageSegment),
      is(0L));
  assertThat(
      ImageAttribute.NUMBER_OF_SIGNIFICANT_COLUMNS_IN_IMAGE_ATTRIBUTE
          .getAccessorFunction()
          .apply(imageSegment),
      is(0L));
  assertThat(
      ImageAttribute.IMAGE_SOURCE_ATTRIBUTE.getAccessorFunction().apply(imageSegment),
      is(nullValue()));
}