assertEquals(ATOM_ENTRY_BASE64_CONTENT, new String(content));
}
@Test
public void testAtomTitle() throws Exception {
AtomEntryParser aep = new AtomEntryParser(new ByteArrayInputStream(ATOM_ENTRY_NAME.getBytes()), null, THRESHOLD);
assertNotNull(aep);
assertNotNull(aep.getObject());
assertNotNull(aep.getObject().getProperties());
assertNotNull(aep.getObject().getProperties().getProperties());
assertNotNull(aep.getObject().getProperties().getProperties().get(PropertyIds.NAME) instanceof PropertyString);
PropertyString nameProperty = (PropertyString) aep.getObject().getProperties().getProperties()
.get(PropertyIds.NAME);
assertEquals("atom.title", nameProperty.getFirstValue());
}