@Test
public void gettingNonExistingTerminalShouldFail() {

	final String path = "patch.value.typed_config.value.root_id";
	try {
		assertEquals("stats_outbound", StructHelper.get(map, path, String.class));
		fail("Should have thrown an IllegalArgumentException");
	} catch (IllegalArgumentException e) {
		// expected
		final String message = e.getMessage();
		assertEquals("'root_id' is not a child of 'patch.value.typed_config.value'. Known children: " +
				"'config'", message);
	}
}