* @throws Exception
*/
@Test
@Rollback(false)
public void authorBiography() throws Exception {
OneToOneAuthor author = new OneToOneAuthor();
author.setName("debop");
author.getBiography().setInformation("Sunghyouk Bae");
author.getPicture().setPath("file://a/b/c");
em.persist(author);
em.flush();
em.clear();
author = em.find(OneToOneAuthor.class, author.getId());
assertThat(author).isNotNull();
OneToOneBiography bio = author.getBiography();
assertThat(bio).isNotNull();
assertThat(bio.getInformation()).isEqualToIgnoringCase("Sunghyouk Bae");
author.getBiography().setInformation("debop");
em.persist(author);
em.flush();
em.clear();
author = em.find(OneToOneAuthor.class, author.getId());
assertThat(author).isNotNull();
assertThat(author.getBiography().getInformation()).isEqualToIgnoringCase("debop");
}