@Test
public void isPresentVariationFailed() {

    when(browser.isPresent(any())).thenReturn(false);
    try {
        assertThat(div, CustomMatchers.isPresent().in(browser));
        fail("should fail");
    } catch (AssertionError e) {
        assertThat(e.getMessage(), is(equalTo("\nExpected: browser page contains div\n     but: div is absent")));
    }
}