@Test
public void flushWithData() {
// Arrange
Person person = new Person();
PersonEditor editor = new PersonEditor();
PersonDriver driver = GWT.create(PersonDriver.class);
driver.initialize(editor);
// Start editing
driver.edit(person);
// Act : edit widget
Browser.fillText(editor.firstName, "John");
Browser.fillText(editor.lastName, "Locke");
Browser.fillText(editor.address.street(), "Avenue des Champs Elysées");
Browser.fillText(editor.address.zipWithPathEditor(), "75008");
Browser.fillText(editor.address.city, "Paris");
// TODO : API Browser for ValueListBox
editor.address.stateWithPath.setValue("France", true);
driver.flush();
// Assert
assertEquals("John", person.getFirstName());
assertEquals("Locke", person.getLastName());