@Test
public void testConvert1_NestedJavaBean() throws Exception {

    Map<String, String> map = converter.convert(
            new SearchUserForm1(new SearchUserCriteriaForm1("yamada", 20), true));
    assertThat(map.size(), is(3));
    assertThat(map, hasEntry("criteria.name", "yamada"));
    assertThat(map, hasEntry("criteria.age", "20"));
    assertThat(map, hasEntry("rememberCriteria", "true"));
    // check reverse conversion
    SearchUserForm1 form = new SearchUserForm1();
    WebDataBinder binder = new WebDataBinder(form);
    binder.bind(new MutablePropertyValues(map));
    assertThat(form.getCriteria(), is(notNullValue()));
    assertThat(form.getCriteria().getName(), is("yamada"));
    assertThat(form.getCriteria().getAge(), is(20));
    assertThat(form.isRememberCriteria(), is(true));
}