@Override
	public TreeEntry<K, V> get(Object key) {
		return nodes.get(key);
	}
@Test
	public void putAllNodeTest() {
		final ForestMap<String, Map<String, String>> map = new LinkedForestMap<>(false);

		final Map<String, String> aMap = MapBuilder.<String, String> create()
			.put("pid", null)
			.put("id", "a")
			.build();
		final Map<String, String> bMap = MapBuilder.<String, String> create()
			.put("pid", "a")
			.put("id", "b")
			.build();
		final Map<String, String> cMap = MapBuilder.<String, String> create()
			.put("pid", "b")
			.put("id", "c")
			.build();
		map.putAllNode(Arrays.asList(aMap, bMap, cMap), m -> m.get("id"), m -> m.get("pid"), true);

		final TreeEntry<String, Map<String, String>> a = map.get("a");
		assertNotNull(a);
		final TreeEntry<String, Map<String, String>> b = map.get("b");
		assertNotNull(b);
		final TreeEntry<String, Map<String, String>> c = map.get("c");
		assertNotNull(c);

		assertNull(a.getDeclaredParent());
		assertEquals(a, b.getDeclaredParent());
		assertEquals(b, c.getDeclaredParent());

		assertEquals(aMap, a.getValue());
		assertEquals(bMap, b.getValue());
		assertEquals(cMap, c.getValue());
	}