void () { ComparisonFailureData notification = createNotification("expected:<<foo>> but was:<hi with <brackets>>"); Assert.assertNotNull(notification); Assert.assertEquals("<foo>", notification.getExpected()); Assert.assertEquals("hi with <brackets>", notification.getActual()); }