Date future = new Date(
System.currentTimeMillis() + (1000 * 60 * 60)
);
//
// Create our AppleBean.
AppleBean apple = new AppleBeanImpl();
//
// Create our AppleNode.
AppleNode node = new AppleNodeImpl(
new FruitBeanImpl.StringIdentBuilder<AppleBean>(
new URI(
"urn://apples/"
)
),
apple
);
//
// Set the AppleNode modified property.
node.properties().set(
AppleNode.MODIFIED_PROPERTY_URI,
format.format(
future
)
);
//
// Check the AppleBean modified date.
assertEquals(
future,
apple.modified()
);
}