@Test
public void ShouldCorrectConvertMapToIObject() throws Exception {

    IKey key = mock(IKey.class);
    when(Keys.getOrAdd("info.smart_tools.smartactors.iobject.ifield_name.IFieldName")).thenReturn(key);
    IFieldName fieldName1 = mock(IFieldName.class);
    IFieldName fieldName2 = mock(IFieldName.class);
    when(IOC.resolve(key, "key1")).thenReturn(fieldName1);
    when(IOC.resolve(key, "key2")).thenReturn(fieldName2);
    Map<String, Object> map = new LinkedHashMap<>();
    map.put("key1", 123);
    map.put("key2", "value");
    IObject result = strategy.resolve(map);
    assertEquals(result.getValue(fieldName1), 123);
    assertEquals(result.getValue(fieldName2), "value");
}