@SuppressWarnings("unchecked")
@Test
public void createObject() {

    Map<List<String>, Object> params = new HashMap<>();
    params.put(asList("creator", "name"), "TestName");
    params.put(asList("creator", "surname"), "TestSurname");
    params.put(singletonList("age"), BigDecimal.valueOf(10));
    ValueWrapper<Object> initialInstance = runnerHelper.getDirectMapping(params);
    Object objectRaw = runnerHelper.createObject(
            initialInstance,
            String.class.getCanonicalName(),
            params,
            this.getClass().getClassLoader());
    assertTrue(objectRaw instanceof Map);
    Map<String, Object> object = (Map<String, Object>) objectRaw;
    assertEquals(BigDecimal.valueOf(10), object.get("age"));
    assertTrue(object.get("creator") instanceof Map);
    Map<String, Object> creator = (Map<String, Object>) object.get("creator");
    assertEquals("TestName", creator.get("name"));
    assertEquals("TestSurname", creator.get("surname"));
}