void () { ComparisonFailureData failure = createNotification("expected [foo] but found [bar]"); assertNotNull(failure); assertEquals("foo", failure.getExpected()); assertEquals("bar", failure.getActual()); }