@Test
public void testForeignerIdentityFile() throws Exception {

	InputStream inputStream = TlvParserTest.class.getResourceAsStream("/id-foreigner.tlv");
	byte[] identityData = IOUtils.toByteArray(inputStream);
	Identity identity = TlvParser.parse(identityData, Identity.class);
	LOG.debug("name: " + identity.getName());
	LOG.debug("first name: " + identity.getFirstName());
	LOG.debug("document type: " + identity.getDocumentType());
	Assert.assertEquals(DocumentType.FOREIGNER_E_PLUS, identity.getDocumentType());
	assertNotNull(identity.getDuplicate());
	LOG.debug("duplicate: " + identity.getDuplicate());
	LOG.debug("special organisation: \"" + identity.getSpecialOrganisation() + "\"");
	Assert.assertEquals(SpecialOrganisation.UNSPECIFIED, identity.getSpecialOrganisation());
}