@Test
public void testDuplicate02() throws Exception {

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