@Test
public void checkCreationByMap()
        throws Exception {

    IFieldName fieldName = mock(IFieldName.class);
    Object obj = mock(Object.class);
    Map<IFieldName, Object> map = new HashMap<IFieldName, Object>(){{put(fieldName, obj);}};
    IObject result = new DSObject(map);
    assertNotNull(obj);
    assertEquals(obj, result.getValue(fieldName));
}