public static Object getProperty(Object source, String key) {
        if (source instanceof Map) {
            return ((Map<?, ?>) source).get(key);
        }
        SingleValueMap<Object, Object> map = new SingleValueMap<>();
        copy(source, map, include(key));
        return map.getValue();
    }
@Test
    public void testGetProperty() {

        Assert.assertEquals(1, FastBeanCopier.getProperty(ImmutableMap.of("a", 1, "b", 2), "a"));

    }