private void assertEqualsIgnoreWhitespace(final String expected,
                                            final String actual) {
    if (expected == null || actual == null) {
      assertEquals(expected,
          actual);
      return;
    }
    final String cleanExpected = expected.replaceAll("\\s+",
        "");
    final String cleanActual = actual.replaceAll("\\s+",
        "");

    assertEquals(cleanExpected,
        cleanActual);
  }