}
public void checkGuessFormat(File imageFile, byte[] imageFileBytes)
throws IOException, ImageReadException {
// check guessFormat()
ImageFormat imageFormatFile = Sanselan.guessFormat(imageFile);
assertTrue(imageFormatFile != null);
assertTrue(imageFormatFile != ImageFormat.IMAGE_FORMAT_UNKNOWN);
// Debug.debug("imageFormatFile", imageFormatFile);
ImageFormat imageFormatBytes = Sanselan.guessFormat(imageFileBytes);
assertTrue(imageFormatBytes != null);
assertTrue(imageFormatBytes != ImageFormat.IMAGE_FORMAT_UNKNOWN);
// Debug.debug("imageFormatBytes", imageFormatBytes);
assertTrue(imageFormatBytes == imageFormatFile);