@Test
public void testParseLogOnExamples() throws Exception {

	System.out.println(CLASS_NAME + ":testParseLogOnExamples()");
	String log = "Hosts ["
		+ "Host:[id=<982>, hostname=<konos37.fav.zcu.cz>], "
		+ "Host:[id=<981>, hostname=<konos36.fav.zcu.cz>], "
		+ "Host:[id=<980>, hostname=<konos34.fav.zcu.cz>], "
		+ "Host:[id=<979>, hostname=<konos33.fav.zcu.cz>], "
		+ "Host:[id=<978>, hostname=<konos30.fav.zcu.cz>], "
		+ "Host:[id=<977>, hostname=<konos28.fav.zcu.cz>], "
		+ "Host:[id=<976>, hostname=<konos27.fav.zcu.cz>], "
		+ "Host:[id=<975>, hostname=<konos26.fav.zcu.cz>], "
		+ "Host:[id=<974>, hostname=<konos24.fav.zcu.cz>], "
		+ "Host:[id=<973>, hostname=<konos22.fav.zcu.cz>], "
		+ "Host:[id=<972>, hostname=<konos20.fav.zcu.cz>], "
		+ "Host:[id=<971>, hostname=<konos19.fav.zcu.cz>], "
		+ "Host:[id=<970>, hostname=<konos18.fav.zcu.cz>], "
		+ "Host:[id=<969>, hostname=<konos17.fav.zcu.cz>], "
		+ "Host:[id=<968>, hostname=<konos16.fav.zcu.cz>], "
		+ "Host:[id=<967>, hostname=<konos15.fav.zcu.cz>]] "
		+ "removed from cluster "
		+ "Facility:[id=<371>, name=<konos.fav.zcu.cz>, type=<cluster>]";
	String log2 = "RichMember:[id=<12521>, userId=<9181>, voId=<21>, status=<DISABLED>, sourceGroupId=<\\0>, sponsored=<true>, suspendedTo=<\\0>, "
		+ "user=<User:[id=<9181>,uuid=<null>,titleBefore=<null>,firstName=<Gracian>,lastName=<Tejral>,middleName=<null>,titleAfter=<null>]>, "
		+ "userExtSources=<[UserExtSource:[id=<13621>, login=<8087>, source=<ExtSource:[id=<2>, name=<PERUNPEOPLE>, type=<cz.metacentrum.perun.core.impl.ExtSourceSql>]>, userId=<-1> loa=<0>, lastAccess=<2019-06-17 00:00:00.000000>]]>, "
		+ "userAttributes=<[Attribute:[id=<800>, friendlyName=<kerberosLogins>, namespace=<urn:perun:user:attribute-def:def>, type=<java.util.ArrayList>, value=<[tejral@META, tejral@EINFRA]>], "
		+ "Attribute:[id=<49>, friendlyName=<id>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.Integer>, value=<9181>], "
		+ "Attribute:[id=<50>, friendlyName=<firstName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<Gracian>], "
		+ "Attribute:[id=<51>, friendlyName=<lastName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<Tejral>], "
		+ "Attribute:[id=<52>, friendlyName=<middleName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<null>], "
		+ "Attribute:[id=<53>, friendlyName=<titleBefore>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<null>], "
		+ "Attribute:[id=<54>, friendlyName=<titleAfter>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<null>], "
		+ "Attribute:[id=<221>, friendlyName=<uid-namespace:ruk>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.Integer>, value=<12762>], "
		+ "Attribute:[id=<222>, friendlyName=<uid-namespace:ics>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.Integer>, value=<62434>], "
		+ "Attribute:[id=<1140>, friendlyName=<displayName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<Gracian Tejral>], "
		+ "Attribute:[id=<220>, friendlyName=<uid-namespace:zcu>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.Integer>, value=<62433>], "
		+ "Attribute:[id=<146>, friendlyName=<login-namespace:einfra>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.String>, value=<tejral>]]>, "
		+ "memberAttributes=<[Attribute:[id=<32>, friendlyName=<id>, namespace=<urn:perun:member:attribute-def:core>, type=<java.lang.Integer>, value=<12521>], "
		+ "Attribute:[id=<860>, friendlyName=<membershipExpiration>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<2010-12-31>], "
		+ "Attribute:[id=<880>, friendlyName=<status>, namespace=<urn:perun:member:attribute-def:core>, type=<java.lang.String>, value=<DISABLED>], "
		+ "Attribute:[id=<60>, friendlyName=<mail>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<gracian.tejral@centrum.cz>], "
		+ "Attribute:[id=<122>, friendlyName=<phone>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<605469950>], "
		+ "Attribute:[id=<123>, friendlyName=<organization>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<Univerzita Karlova>]]>] "
		+ "validated";
	String log3 = "Group synchronization Group:[id=<21>, parentGroupId=<35>, name=<members>, description=<Group containing VO members>, voId=<21>]: "
		+ "Member RichMember:[id=<11523>, userId=<3242>, voId=<21>, status=<DISABLED>, sourceGroupId=<\\0>, sponsored=<true>, suspendedTo=<\\0>, user=<User:[id=<3242>,titleBefore=<null>,firstName=<Jiri>,lastName=<Novacek>,middleName=<null>,titleAfter=<null>]>, userExtSources=<[UserExtSource:[id=<6083>, login=<novej>, source=<ExtSource:[id=<3>, name=<META>, type=<cz.metacentrum.perun.core.impl.ExtSourceKerberos>]>, loa=<0>, lastAccess=<2019-06-17 00:00:00.000000>], UserExtSource:[id=<4534>, login=<16143>, source=<ExtSource:[id=<2>, name=<PERUNPEOPLE>, type=<cz.metacentrum.perun.core.impl.ExtSourceSql>]>, loa=<0>, lastAccess=<\\0>], UserExtSource:[id=<4916>, login=<novej>, source=<ExtSource:[id=<2>, name=<PERUNPEOPLE>, type=<cz.metacentrum.perun.core.impl.ExtSourceSql>]>, loa=<0>, lastAccess=<\\0>], UserExtSource:[id=<9542>, login=<151132@muni.cz>, source=<ExtSource:[id=<142>, name=<https://idp2.ics.muni.cz/idp/shibboleth>, type=<cz.metacentrum.perun.core.impl.ExtSourceIdp>]>, loa=<0>, lastAccess=<\\0>], UserExtSource:[id=<9543>, login=<151132>, source=<ExtSource:[id=<1>, name=<LDAPMU>, type=<cz.metacentrum.perun.core.impl.ExtSourceLdap>]>, loa=<0>, lastAccess=<\\0>]]>, userAttributes=<[Attribute:[id=<800>, friendlyName=<kerberosLogins>, namespace=<urn:perun:user:attribute-def:def>, type=<java.util.ArrayList>, value=<[novej@META, novej@EINFRA]>], Attribute:[id=<49>, friendlyName=<id>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.Integer>, value=<3242>], Attribute:[id=<50>, friendlyName=<firstName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<Jiri>], Attribute:[id=<51>, friendlyName=<lastName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<Novacek>], Attribute:[id=<52>, friendlyName=<middleName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<null>], Attribute:[id=<53>, friendlyName=<titleBefore>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<null>], Attribute:[id=<54>, friendlyName=<titleAfter>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<null>], Attribute:[id=<221>, friendlyName=<uid-namespace:ruk>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.Integer>, value=<13191>], Attribute:[id=<222>, friendlyName=<uid-namespace:ics>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.Integer>, value=<62861>], Attribute:[id=<1140>, friendlyName=<displayName>, namespace=<urn:perun:user:attribute-def:core>, type=<java.lang.String>, value=<Jiri Novacek>], Attribute:[id=<202>, friendlyName=<perunPeopleId>, namespace=<urn:perun:user:attribute-def:opt>, type=<java.lang.String>, value=<16143>], Attribute:[id=<220>, friendlyName=<uid-namespace:zcu>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.Integer>, value=<62863>], Attribute:[id=<146>, friendlyName=<login-namespace:einfra>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.String>, value=<novej>], Attribute:[id=<440>, friendlyName=<userCertificates>, namespace=<urn:perun:user:attribute-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H/BAQDAgWgMAwGA1Ud\n"
		+ "EwEB/wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwQGCCsGAQUFBwMCMBgGA1UdIAQR\n"
		+ "MA8wDQYLKwYBBAGyMQECAh0wPwYDVR0fBDgwNjA0oDKgMIYuaHR0cDovL2NybC50\n"
		+ "Y3MudGVyZW5hLm9yZy9URVJFTkFQZXJzb25hbENBLmNybDByBggrBgEFBQcBAQRm\n"
		+ "MGQwOgYIKwYBBQUHMAKGLmh0dHA6Ly9jcnQudGNzLnRlcmVuYS5vcmcvVEVSRU5B\n"
		+ "UGVyc29uYWxDQS5jcnQwJgYIKwYBBQUHMAGGGmh0dHA6Ly9vY3NwLnRjcy50ZXJl\n"
		+ "bmEub3JnMB0GA1UdEQQWMBSBEm5vdmVqQG1haWwubXVuaS5jejANBgkqhkiG9w0B\n"
		+ "AQUFAAOCAQEAO7XXTdWNc6Bm5tCzFVi3QR75hQoJJP4mkW5vNHe4z+XWPmGp4aS1\n"
		+ "ye3Co4oQTzF2zmeEsNVArbii9OTFmTZXakGsH/WhFG4trGqW3AbCL28FGoz8I4JW\n"
		+ "vkJMKmzZHvP/mdJFfQZVB5OaB5mSZVLt9kOvnb0aAYApLQZb8zbyQ4up96avOXyQ\n"
		+ "7zvGwLIn2O9S+yNPShe39lMVPqb5mkAgOdUA3KcqlNJQtwS+p5lZXzDuBzJZY+Gv\n"
		+ "/bJtJWtvSfVlRReDTfKW5qzJkFR/YqnGYU6R5Xq70zMdKtdjGgDkFiybJB9619lj\n"
		+ "rLwA+iL1DZr6jWGINA2ROsOwwSYqTRF7AQ==\n"
		+ "-----END CERTIFICATE-----\n"
		+ "}>], Attribute:[id=<441>, friendlyName=<userCertDNs>, namespace=<urn:perun:user:attribute-def:def>, type=<java.util.LinkedHashMap>, value=<{/C=CZ/O=Masarykova univerzita/CN=Ji\\\\xC5\\\\x99\\\\xC3\\\\xAD Nov\\\\xC3\\\\xA1\\\\xC4\\\\x8Dek/unstructuredName=151132=/C=NL/O=TERENA/CN=TERENA Personal CA}>]]>, memberAttributes=<[Attribute:[id=<32>, friendlyName=<id>, namespace=<urn:perun:member:attribute-def:core>, type=<java.lang.Integer>, value=<11523>], Attribute:[id=<860>, friendlyName=<membershipExpiration>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<2012-01-31>], Attribute:[id=<880>, friendlyName=<status>, namespace=<urn:perun:member:attribute-def:core>, type=<java.lang.String>, value=<DISABLED>], Attribute:[id=<60>, friendlyName=<mail>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<novej@ncbr.chemi.muni.cz>], Attribute:[id=<122>, friendlyName=<phone>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<+420-549 492 674>], Attribute:[id=<123>, friendlyName=<organization>, namespace=<urn:perun:member:attribute-def:def>, type=<java.lang.String>, value=<Masarykova univerzita>]]>] removed.";
	String log4 = "Attribute:[id=<146>, friendlyName=<login-namespace:einfra>, namespace=<urn:perun:user:attribute-def:def>, type=<java.lang.String>, value=<tejral>]";
	String log5 = "Member:[id=<3899>, userId=<3199>, voId=<21>, status=<VALID>, sourceGroupId=<\\0>, sponsored=<true>, suspendedTo=<" + BeansUtils.getDateFormatter().format(Date.from(Instant.now())) + ">] Cokoliv:[]";
	//Long start = System.currentTimeMillis();
	List<PerunBean> list = AuditParser.parseLog(log);
	//Long end = System.currentTimeMillis()-start;
	//System.out.println("Trvani 1 v case = " + end.toString());
	//start = System.currentTimeMillis();
	List<PerunBean> list2 = AuditParser.parseLog(log2);
	//end = System.currentTimeMillis()-start;
	//System.out.println("Trvani 2 v case = " + end.toString());
	//start = System.currentTimeMillis();
	List<PerunBean> list3 = AuditParser.parseLog(log3);
	//end = System.currentTimeMillis()-start;
	//System.out.println("Trvani 3 v case = " + end.toString());
	//start = System.currentTimeMillis();
	List<PerunBean> list4 = AuditParser.parseLog(log4);
	//end = System.currentTimeMillis()-start;
	assertEquals(17, list.size());
	assertEquals(1, list2.size());
	assertEquals(2, list3.size());
	assertEquals(1, list4.size());
	List<PerunBean> list5 = AuditParser.parseLog(log5);
}