code: public static void check( byte expected, byte actual) throws IOException {
  		if ( expected != actual) throw new IOException( "check expected " + Integer.toHexString( 0xff & expected) + ", found " + Integer.toHexString( 0xff & actual));
  	}
docs: Checks that two bytes are the same, while generating
  a formatted error message if they are not. The error
  message will indicate the hex value of the bytes if
  they do not match.
  
  @param expected the expected value
  @param actual the actual value
  @throws IOException if the two values do not match