@Test
public void testHCard() throws Exception {

	InputStream inputStream = TlvParserTest.class.getResourceAsStream("/h-card.tlv");
	byte[] identityData = IOUtils.toByteArray(inputStream);
	Identity identity = TlvParser.parse(identityData, Identity.class);
	LOG.debug("document type: " + identity.getDocumentType());
	assertEquals(DocumentType.EUROPEAN_BLUE_CARD_H, identity.getDocumentType());
	LOG.debug("duplicate: " + identity.getDuplicate());
	assertEquals("01", identity.getDuplicate());
	assertTrue(identity.isMemberOfFamily());
	LOG.debug("special organisation: \""
			+ identity.getSpecialOrganisation() + "\"");
	assertEquals(SpecialOrganisation.UNSPECIFIED, identity.getSpecialOrganisation());
}