assertEquals(dateTime.getTime(), now.getTime());
dateTime = factory.newDateTime(Constants.UPDATED, null);
dateTime.setString(AtomDate.format(now));
assertEquals(dateTime.getString(), AtomDate.format(now));
assertEquals(dateTime.getDate(), now);
Generator generator = factory.newDefaultGenerator();
assertNotNull(generator);
assertEquals(generator.getText(), Version.APP_NAME);
assertEquals(generator.getVersion(), Version.VERSION);
assertEquals(generator.getUri().toString(), Version.URI);
Div div = factory.newDiv();
assertNotNull(div);
Document doc = factory.newDocument();
assertNotNull(doc);
Element el = factory.newEmail();
assertNotNull(el);
el = factory.newEmail();
el.setText("a");
assertEquals(el.getText(), "a");
Entry entry = factory.newEntry();
assertNotNull(entry);
entry = factory.newEntry();
assertNotNull(entry);
Element ee = factory.newExtensionElement(new QName("urn:foo", "bar", "b"));
assertNotNull(ee);
assertEquals(ee.getQName(), new QName("urn:foo", "bar", "b"));
Feed feed = factory.newFeed();
assertNotNull(feed);
generator = factory.newGenerator();
assertNotNull(generator);
generator = factory.newGenerator();
generator.setUri(Version.URI);
generator.setVersion(Version.VERSION);
generator.setText(Version.APP_NAME);
assertNotNull(generator);
assertEquals(generator.getText(), Version.APP_NAME);
assertEquals(generator.getVersion(), Version.VERSION);
assertEquals(generator.getUri().toString(), Version.URI);
content = factory.newContent(Content.Type.HTML);
content.setValue("a");
assertNotNull(content);
assertEquals(content.getValue(), "a");
assertEquals(content.getContentType(), Content.Type.HTML);