protected static void assertEqualsIgnoreId(String expected, String actual) {
		final StringTokenizer expLines = new StringTokenizer(expected, "\n");
		final StringTokenizer actLines = new StringTokenizer(actual, "\n");

		String exp, act;
		while (expLines.hasMoreTokens() && actLines.hasMoreTokens()) {
			exp = expLines.nextToken();
			act = actLines.nextToken();
			int iId = exp.indexOf(KEY_ID_OPEN);

			if (iId > -1) {
				// id key was found
				if (!equalsIgnoreId(exp, act)) {
					throw new ComparisonFailure(
							"Strings differ although id is ignored.", exp, act);
				}
			} else {
				// normal string line (without id)
				assertEquals(exp, act);
			}
		}

		assertFalse(expLines.hasMoreTokens());
		assertFalse(actLines.hasMoreTokens());
	}