@Test
public void testOptionalMapping() {

    Map<String, Object> map = new HashMap<>();
    map.put("simple", 1);
    map.put("optionalString", "testString");
    Map<String, String> beanMap = new HashMap<>();
    beanMap.put("name", "testName");
    map.put("optionalBean", beanMap);
    FixtureTemplate fixture = FixtureTemplateWrapper.wrap(map, null, null);
    OptionalTest result = (OptionalTest) converter.convert(fixture, TypeToken.of(OptionalTest.class));
    assertEquals(1, result.simple.get());
    assertEquals("testString", result.optionalString.get());
    assertEquals("testName", result.optionalBean.get().name.get());
}