@Test
public void pathInterruptedByTerminalShouldFail() {

	final String path = "patch.operation.foo.bar";
	try {
		assertEquals(Collections.emptyMap(), StructHelper.get(map, path, Map.class));
		fail("Should have thrown an IllegalArgumentException");
	} catch (IllegalArgumentException e) {
		// expected
		final String message = e.getMessage();
		assertEquals("'" + path + "' is interrupted at 'patch.operation' because 'operation' is a terminal element",
				message);
	}
}