- Assert.assertNotNull(data.get());
- Assert.assertEquals(TestModel.TEST_QNAME, data.get().getNodeType());
- }
+ @Test
+ public void testEverySerializedCompositeModificationObjectMustBeDifferent(){
+ MutableCompositeModification compositeModification = new MutableCompositeModification();
+ compositeModification.addModification(new WriteModification(TestModel.TEST_PATH,
+ ImmutableNodes.containerNode(TestModel.TEST_QNAME), TestModel.createTestContext()));
+ Object one = compositeModification.toSerializable();
+ try{Thread.sleep(10);}catch(Exception err){}
+ Object two = compositeModification.toSerializable();
+ assertNotEquals(one,two);
+ }