@Test
public void getSegmentType() throws Exception {

    byte[] imageIntel = readTiffImage();
    byte[] imageMotorola = readTiffImageMotorola();
    ImageObject io = new ImageObject();
    io.addSegment(1, imageIntel);
    io.addSegment(2, imageMotorola);
    assertEquals("should be TIFF", ImageObject.TYPE_TIFF, io.getSegmentType(1));
    assertEquals("should be TIFF", ImageObject.TYPE_TIFF, io.getSegmentType(2));
}