message: Create tests for frame_authenticate
diff: @@ -15,3 +15,19 @@ impl FromCursor for BodyResAuthenticate {
  }
  }
  }
  +
  +#[cfg(test)]
  +mod tests {
  + use super::*;
  + use std::io::Cursor;
  + use FromCursor;
  +
  + #[test]
  + fn body_res_authenticate() {
  + // string "abcde"
  + let data: Vec<u8> = vec![0, 5, 97, 98, 99, 100, 101];
  + let mut cursor = Cursor::new(data);
  + let body = BodyResAuthenticate::from_cursor(&mut cursor);
  + assert_eq!(body.data.as_str(), "abcde");
  + }
  +}
  