}
public void testParse() throws IOException {
// Test Standard parsing
BibtexParser parser = new BibtexParser(new StringReader(
"@article{test,author={Ed von Test}}"));
ParserResult result = parser.parse();
Collection<BibtexEntry> c = result.getDatabase().getEntries();
assertEquals(1, c.size());
BibtexEntry e = c.iterator().next();
assertEquals("test", e.getCiteKey());
assertEquals(2, e.getAllFields().size());
assertTrue(e.getAllFields().contains("author"));
assertEquals("Ed von Test", e.getField("author"));
// Calling parse again will return the same result
assertEquals(result, parser.parse());
}