/**
* Test Basic Creation
*/
public void testBasicCreation()
{
RelationNotification rn = null;
try
{
rn = new RelationNotification(RelationNotification.RELATION_BASIC_CREATION,
new RelationService(true), 21, 23, "message", "relationId",
"relationTypeName", null, null);
}
catch (Exception e)
{
fail(e.toString());
}
assertEquals(RelationNotification.RELATION_BASIC_CREATION, rn.getType());
assertEquals(21, rn.getSequenceNumber());
assertEquals(23, rn.getTimeStamp());
assertEquals("message", rn.getMessage());
assertEquals("relationId", rn.getRelationId());
assertEquals("relationTypeName", rn.getRelationTypeName());
assertEquals(null, rn.getObjectName());
assertEquals(0, rn.getMBeansToUnregister().size());
}