@Test
public void testParseNewIdentityFile() throws Exception {

	InputStream inputStream = TlvParserTest.class.getResourceAsStream("/new-eid.txt");
	byte[] base64IdentityData = IOUtils.toByteArray(inputStream);
	byte[] identityData = Base64.getDecoder().decode(base64IdentityData);
	Identity identity = TlvParser.parse(identityData, Identity.class);
	LOG.debug("name: " + identity.getName());
	LOG.debug("first name: " + identity.getFirstName());
	LOG.debug("card validity date begin: " + identity.getCardValidityDateBegin().getTime());
	LOG.debug("document type: " + identity.getDocumentType());
	assertEquals(DocumentType.BELGIAN_CITIZEN, identity.getDocumentType());
	assertNull(identity.getDuplicate());
	assertFalse(identity.isMemberOfFamily());
}