@Test
public void getTagType() {

  Tag tag;
  tag = new Tag(0x55, Tag.UNIVERSAL, Tag.TagType.PRIMITIVE, 2);
  Assert.assertEquals(Tag.TagType.PRIMITIVE, tag.getTagType());
  tag = new Tag(0x55, Tag.APPLICATION, Tag.TagType.CONSTRUCTED, 2);
  Assert.assertEquals(Tag.TagType.CONSTRUCTED, tag.getTagType());
  tag = new Tag(ByteArrayUtil.fromHex("1F550100"), 0);
  Assert.assertEquals(Tag.TagType.PRIMITIVE, tag.getTagType());
  tag = new Tag(ByteArrayUtil.fromHex("3F550100"), 0);
  Assert.assertEquals(Tag.TagType.CONSTRUCTED, tag.getTagType());
}