class MapUtils {

    public static Map<String, String> mapOf(final String... keyOrValues) {
        if (keyOrValues.length % 2 != 0) {
            throw new IllegalArgumentException("Must provide an even number of arguments");
        }
        final Map<String, String> map = _Maps.newLinkedHashMap();
        String key = null;
        for (final String keyOrValue : keyOrValues) {
            if (key != null) {
                map.put(key, keyOrValue);
                key = null;
            } else {
                key = keyOrValue;
            }
        }
        return Collections.unmodifiableMap(map);
    }

}

class MapUtilsTest {

    @Test
    public void emptyList() throws Exception {

        final Map<String, String> map = MapUtils.mapOf();
        assertThat(map.size(), is(0));
    }

}