TEST(test_epass_utils, test_parse_dg2_entry_header)
{
    ByteVector header = {0x80, 0x2,  0x1, 0x1, 0x81, 0x1,  0x2, 0x82, 0x1,
                         0x0,  0x87, 0x2, 0x1, 0x1,  0x88, 0x2, 0x0,  0x8};
    EPassDG2::BioInfo info;

    auto b = header.cbegin();
    auto e = header.cend();

    EPassUtils::parse_dg2_entry_header(info, b, e);
    ASSERT_EQ((ByteVector{0x1, 0x1}), info.header_);
    ASSERT_EQ((ByteVector{0x2}), info.element_type_);
    ASSERT_EQ((ByteVector{0x0}), info.element_subtype_);
    ASSERT_EQ((ByteVector{0x1, 0x1}), info.format_owner_);
    ASSERT_EQ((ByteVector{0x0, 0x8}), info.format_type_);
}