}
@Test
public void createFromExisting() {
// Arrange
Person person = new PersonImpl();
person.setName("Benjamin Linus");
Address address = new AddressImpl();
person.setAddress(address);
// Act
AutoBean<Person> bean = myFactory.create(Person.class, person);
// Act
String json = AutoBeanCodex.encode(bean).getPayload();
// Assert
assertThat(person.getName()).isEqualTo("Benjamin Linus");
assertThat(person.getAddress()).isEqualTo(address);
}