@Test
public void testParseLogCreatedBeans() throws Exception {

	System.out.println(CLASS_NAME + ":testParseLogCreatedBeans()");
	richMember.setMembershipType(MembershipType.INDIRECT);
	String bigLog = user.serializeToString() + extSource.serializeToString() + userExtSource1.serializeToString() +
		vo.serializeToString() + facility.serializeToString() +
		resource.serializeToString() + group.serializeToString() + member.serializeToString() +
		candidate.serializeToString() + destination.serializeToString() + host.serializeToString() +
		owner.serializeToString() + service.serializeToString() + attributeDefinition1.serializeToString() +
		attribute1.serializeToString() + richMember.serializeToString() + richDestination.serializeToString() +
		richResource.serializeToString() + richUser.serializeToString() + richGroup.serializeToString() +
		richFacility.serializeToString() + resourceTag1.serializeToString() +
		securityTeam1.serializeToString() + taskResult1.serializeToString() + banOnResource1.serializeToString() +
		banOnResource2.serializeToString() + banOnFacility1.serializeToString()+ banOnFacility2.serializeToString();
	List<PerunBean> perunBeans = new ArrayList<PerunBean>();
	perunBeans = AuditParser.parseLog(bigLog);
	assertEquals(28, perunBeans.size());
	assertTrue(perunBeans.contains(user));
	assertTrue(perunBeans.contains(attribute1));
	assertTrue(perunBeans.contains(attributeDefinition1));
	assertTrue(perunBeans.contains(candidate));
	assertTrue(perunBeans.contains(destination));
	assertTrue(perunBeans.contains(extSource));
	assertTrue(perunBeans.contains(facility));
	assertTrue(perunBeans.contains(group));
	assertTrue(perunBeans.contains(host));
	assertTrue(perunBeans.contains(member));
	assertTrue(perunBeans.contains(owner));
	assertTrue(perunBeans.contains(resource));
	assertTrue(perunBeans.contains(richDestination));
	assertTrue(perunBeans.contains(richMember));
	assertTrue(perunBeans.contains(richResource));
	assertTrue(perunBeans.contains(service));
	assertTrue(perunBeans.contains(vo));
	assertTrue(perunBeans.contains(userExtSource1));
	assertTrue(perunBeans.contains(richUser));
	assertTrue(perunBeans.contains(richGroup));
	assertTrue(perunBeans.contains(richFacility));
	assertTrue(perunBeans.contains(resourceTag1));
	assertTrue(perunBeans.contains(securityTeam1));
	assertTrue(perunBeans.contains(taskResult1));
}