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

    Map<List<String>, Object> params = new HashMap<>();
    Map<String, Object> directMappingComplexTypeValue = new HashMap<>();
    directMappingComplexTypeValue.put("key1", "value1");
    params.put(emptyList(), directMappingComplexTypeValue);
    params.put(singletonList("key2"), "value2");
    ValueWrapper<Object> initialInstance = runnerHelper.getDirectMapping(params);
    Object objectRaw = runnerHelper.createObject(
            initialInstance,
            Map.class.getCanonicalName(),
            params,
            this.getClass().getClassLoader());
    assertTrue(objectRaw instanceof Map);
    Map<String, Object> object = (Map<String, Object>) objectRaw;
    assertEquals("value1", object.get("key1"));
    assertEquals("value2", object.get("key2"));
}